Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
usr
/
lib
/
python2.4
/
encodings
/
Upload File :
New :
File
Dir
//proc/self/root/usr/lib/python2.4/encodings/hex_codec.pyo
mņ =5Dc @ s d Z d k Z d k Z d d Z d d Z d e i f d YZ d e e i f d YZ d e e i 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). Nt strictc C s t i | } | 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. N( t binasciit b2a_hext inputt outputt len( R t errorsR ( ( t) /usr/lib/python2.4/encodings/hex_codec.pyt hex_encode s c C s t i | } | 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. N( R t a2b_hexR R R ( R R R ( ( R t hex_decode s t Codecc B s t Z d d Z d d Z RS( NR c C s t | | S( N( R R R ( t selfR R ( ( R t encode/ s c C s t | | S( N( R R R ( R R R ( ( R t decode1 s ( t __name__t __module__R R ( ( ( R R - s t StreamWriterc B s t Z RS( N( R R ( ( ( R R 4 s t StreamReaderc B s t Z RS( N( R R ( ( ( R R 7 s c C s t t t t f S( N( R R R R ( ( ( R t getregentry<