�`^c@s�dZddlZddlZdd�Zdd�Zdejfd��YZdejfd ��YZd
ejfd��YZdeejfd
��YZdeej fd��YZ d�Z
dS(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).
i�NtstrictcCstj|�}|t|�fS(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.
(tbase64tencodestringtlen(tinputterrorstoutput((s,/sys/lib/python2.7/encodings/base64_codec.pyt
base64_encode
scCstj|�}|t|�fS(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.
(RtdecodestringR(RRR((s,/sys/lib/python2.7/encodings/base64_codec.pyt
base64_decodestCodeccBs eZdd�Zdd�ZRS(RcCs
t||�S(N(R(tselfRR((s,/sys/lib/python2.7/encodings/base64_codec.pytencode/scCs
t||�S(N(R (RRR((s,/sys/lib/python2.7/encodings/base64_codec.pytdecode1s(t__name__t
__module__RR
(((s,/sys/lib/python2.7/encodings/base64_codec.pyR
-stIncrementalEncodercBseZed�ZRS(cCs
tj|�S(N(RR(RRtfinal((s,/sys/lib/python2.7/encodings/base64_codec.pyR5s(RRtFalseR(((s,/sys/lib/python2.7/encodings/base64_codec.pyR4stIncrementalDecodercBseZed�ZRS(cCs
tj|�S(N(RR(RRR((s,/sys/lib/python2.7/encodings/base64_codec.pyR
:s(RRRR
(((s,/sys/lib/python2.7/encodings/base64_codec.pyR9stStreamWritercBseZRS((RR(((s,/sys/lib/python2.7/encodings/base64_codec.pyR>stStreamReadercBseZRS((RR(((s,/sys/lib/python2.7/encodings/base64_codec.pyRAscCs4tjdddtdtdtdtdtdt�S( NtnameRRR
tincrementalencodertincrementaldecodertstreamwritertstreamreader(tcodecst CodecInfoRR RRRR(((s,/sys/lib/python2.7/encodings/base64_codec.pytgetregentryFs (t__doc__RRRR R
RRRRR(((s,/sys/lib/python2.7/encodings/base64_codec.pyt<module>s
|