MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_output_charset

Method get_output_charset

Lib/email/charset.py:266–272  ·  view source on GitHub ↗

Return the output character set. This is self.output_charset if that is not None, otherwise it is self.input_charset.

(self)

Source from the content-addressed store, hash-verified

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.

Callers 2

header_encode_linesMethod · 0.95
set_charsetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected