Return the output character set. This is self.output_charset if that is not None, otherwise it is self.input_charset.
(self)
| 264 | return encode_7or8bit |
| 265 | |
| 266 | def get_output_charset(self): |
| 267 | """Return the output character set. |
| 268 | |
| 269 | This is self.output_charset if that is not None, otherwise it is |
| 270 | self.input_charset. |
| 271 | """ |
| 272 | return self.output_charset or self.input_charset |
| 273 | |
| 274 | def header_encode(self, string): |
| 275 | """Header-encode a string by converting it first to bytes. |
no outgoing calls
no test coverage detected