|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21571/root/usr/lib64/python2.4/encodings/ |
Upload File : |
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 'base64_codec' Codec - base64 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 s3 | d j p t 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.
R N( t errorst AssertionErrort base64t encodestringt inputt outputt len( R R R ( ( t. /usr/lib64/python2.4/encodings/base64_codec.pyt
base64_encode
s c C s3 | d j p t 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.
R N( R R R t decodestringR R R ( R R R ( ( R t
base64_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<