3
M]W5
@ s d Z ddlZddlZye W n eefk
r8 eZY nX dZdddZdddZ G d d
d
ej
Z
G dd dejZG d
d dejZG dd de
ej
Z
G dd de
ejZdd ZdS )aL Python 'hex' Codec - 2-digit hex with spaces content transfer encoding.
Encode and decode may be a bit missleading at first sight...
The textual representation is a hex dump: e.g. "40 41"
The "encoded" data of this is the binary form, e.g. b"@A"
Therefore decoding is binary to text and thus converting binary data to hex dump.
NZ0123456789ABCDEFstrictc C s t jdd | j D t| fS )z'40 41 42' -> b'@ab'c S s g | ]}t |d qS ) )int).0h r #/usr/lib/python3.6/hexlify_codec.py