ok
Direktori : /lib64/python2.7/encodings/ |
Current File : //lib64/python2.7/encodings/hex_codec.pyo |
� {fc @ s� d Z d d l Z d d l Z d d � Z d d � Z d e j f d � � YZ d e j f d � � YZ d e j f d � � YZ d e e j f d � � YZ d e e j f d � � YZ d � Z d S( s Python 'hex_codec' Codec - 2-digit hex content transfer encoding Unlike most of the other codecs which target Unicode, this codec will return Python string objects for both encode and decode. Written by Marc-Andre Lemburg (mal@lemburg.com). i����Nt strictc C s t j | � } | t | � f S( s Encodes the object input and returns a tuple (output object, length consumed). errors defines the error handling to apply. It defaults to 'strict' handling which is the only currently supported error handling for this codec. ( t binasciit b2a_hext len( t inputt errorst output( ( s+ /usr/lib64/python2.7/encodings/hex_codec.pyt hex_encode s c C s t j | � } | t | � f S( s� Decodes the object input and returns a tuple (output object, length consumed). input must be an object which provides the bf_getreadbuf buffer slot. Python strings, buffer objects and memory mapped files are examples of objects providing this slot. errors defines the error handling to apply. It defaults to 'strict' handling which is the only currently supported error handling for this codec. ( R t a2b_hexR ( R R R ( ( s+ /usr/lib64/python2.7/encodings/hex_codec.pyt hex_decode s t Codecc B s e Z d d � Z d d � Z RS( R c C s t | | � S( N( R ( t selfR R ( ( s+ /usr/lib64/python2.7/encodings/hex_codec.pyt encode/ s c C s t | | � S( N( R ( R R R ( ( s+ /usr/lib64/python2.7/encodings/hex_codec.pyt decode1 s ( t __name__t __module__R R ( ( ( s+ /usr/lib64/python2.7/encodings/hex_codec.pyR - s t IncrementalEncoderc B s e Z e d � Z RS( c C s t j | � S( N( R R ( R R t final( ( s+ /usr/lib64/python2.7/encodings/hex_codec.pyR 5 s ( R R t FalseR ( ( ( s+ /usr/lib64/python2.7/encodings/hex_codec.pyR 4 s t IncrementalDecoderc B s e Z e d � Z RS( c C s t j | � S( N( R R ( R R R ( ( s+ /usr/lib64/python2.7/encodings/hex_codec.pyR : s ( R R R R ( ( ( s+ /usr/lib64/python2.7/encodings/hex_codec.pyR 9 s t StreamWriterc B s e Z RS( ( R R ( ( ( s+ /usr/lib64/python2.7/encodings/hex_codec.pyR >