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

Class _QByteMap

Lib/email/_encoded_words.py:73–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71
72# dict mapping bytes to their encoded form
73class _QByteMap(dict):
74
75 safe = b'-!*+/' + ascii_letters.encode('ascii') + digits.encode('ascii')
76
77 def __missing__(self, key):
78 if key in self.safe:
79 self[key] = chr(key)
80 else:
81 self[key] = "={:02X}".format(key)
82 return self[key]
83
84_q_byte_map = _QByteMap()
85

Callers 1

_encoded_words.pyFile · 0.85

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…