Lines Matching refs:octet
50 # Build a mapping of octets to the expansion of that octet. Since we're only
74 def header_check(octet):
75 """Return True if the octet should be escaped with header quopri."""
76 return chr(octet) != _QUOPRI_HEADER_MAP[octet]
79 def body_check(octet):
80 """Return True if the octet should be escaped with body quopri."""
81 return chr(octet) != _QUOPRI_BODY_MAP[octet]
94 return sum(len(_QUOPRI_HEADER_MAP[octet]) for octet in bytearray)
104 return sum(len(_QUOPRI_BODY_MAP[octet]) for octet in bytearray)