509318396
Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­
<!DOCTYPE html>
<html>
3

  \ä  ã               @   s’   d Z ddlZddlZddd„Zddd„ZG dd	„ d	ejƒZG d
d„ dejƒZG dd„ dejƒZG dd„ deejƒZG dd„ deej	ƒZ	dd„ Z
dS )z Python 'hex_codec' Codec - 2-digit hex content transfer encoding.

This codec de/encodes from bytes to bytes.

Written by Marc-Andre Lemburg (mal@lemburg.com).
é    NÚstrictc             C   s   t j| ƒt| ƒfS )N)ÚbinasciiÚb2a_hexÚlen)ÚinputÚerrors© r   ú+/usr/lib64/python3.6/encodings/hex_codec.pyÚ
hex_encode   s    r
   c             C   s   t j| ƒt| ƒfS )N)r   Úa2b_hexr   )r   r   r   r   r	   Ú
hex_decode   s    r   c               @   s    e Zd Zddd„Zddd„ZdS )	ÚCodecr   c             C   s
   t ||ƒS )N)r
   )Úselfr   r   r   r   r	   Úencode   s    zCodec.encodec             C   s
   t ||ƒS )N)r   )r   r   r   r   r   r	   Údecode   s    zCodec.decodeN)r   )r   )Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r	   r      s   
r   c               @   s   e Zd Zddd„ZdS )ÚIncrementalEncoderFc             C   s
   t j|ƒS )N)r   r   )r   r   Úfinalr   r   r	   r      s    zIncrementalEncoder.encodeN)F)r   r   r   r   r   r   r   r	   r      s   r   c               @   s   e Zd Zddd„ZdS )ÚIncrementalDecoderFc             C   s
   t j|ƒS )N)r   r   )r   r   r   r   r   r	   r   !   s    zIncrementalDecoder.decodeN)F)r   r   r   r   r   r   r   r	   r       s   r   c               @   s   e Zd ZeZdS )ÚStreamWriterN)r   r   r   ÚbytesÚcharbuffertyper   r   r   r	   r   %   s   r   c               @   s   e Zd ZeZdS )ÚStreamReaderN)r   r   r   r   r   r   r   r   r	   r   (   s   r   c            
   C   s   t jdttttttdd�S )NÚhexF)Únamer   r   ÚincrementalencoderÚincrementaldecoderÚstreamwriterÚstreamreaderÚ_is_text_encoding)ÚcodecsÚ	CodecInfor
   r   r   r   r   r   r   r   r   r	   Úgetregentry-   s    r$   )r   )r   )Ú__doc__r"   r   r
   r   r   r   r   r   r   r$   r   r   r   r	   Ú<module>   s   

