MCPcopy Index your code
hub / github.com/python/cpython / get_charset

Method get_charset

Lib/email/message.py:410–413  ·  view source on GitHub ↗

Return the Charset instance associated with the message's payload.

(self)

Source from the content-addressed store, hash-verified

408 self.add_header('Content-Transfer-Encoding', cte)
409
410 def get_charset(self):
411 """Return the Charset instance associated with the message's payload.
412 """
413 return self._charset
414
415 #
416 # MAPPING INTERFACE (partial)

Callers 12

test_getset_charsetMethod · 0.95
test_ascii_bodyMethod · 0.80
test_latin1_bodyMethod · 0.80
test_bytes_bodyMethod · 0.80
test_text_file_bodyMethod · 0.80
test_binary_file_bodyMethod · 0.80
test_charsetMethod · 0.80
test_7bit_inputMethod · 0.80
test_utf8_inputMethod · 0.80

Calls

no outgoing calls

Tested by 12

test_getset_charsetMethod · 0.76
test_ascii_bodyMethod · 0.64
test_latin1_bodyMethod · 0.64
test_bytes_bodyMethod · 0.64
test_text_file_bodyMethod · 0.64
test_binary_file_bodyMethod · 0.64
test_charsetMethod · 0.64
test_7bit_inputMethod · 0.64
test_utf8_inputMethod · 0.64