Files
PowerToys/PythonHome/Lib/encodings/bz2_codec.pyc

39 lines
4.4 KiB
Plaintext
Raw Normal View History

2014-07-09 18:15:23 +08:00
<03>
<EFBFBD>W`Sc@s<>dZddlZddlZdd<00>Zdd<00>Zdejfd<00><00>YZdejfd <00><00>YZd
ejfd <00><00>YZd eejfd <00><00>YZdeej fd<00><00>YZ d<00>Z
dS(s2 Python 'bz2_codec' Codec - bz2 compression encoding
Unlike most of the other codecs which target Unicode, this codec
will return Python string objects for both encode and decode.
Adapted by Raymond Hettinger from zlib_codec.py which was written
by Marc-Andre Lemburg (mal@lemburg.com).
i<EFBFBD><EFBFBD><EFBFBD><EFBFBD>NtstrictcCs1|dkst<00>tj|<00>}|t|<00>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.
R(tAssertionErrortbz2tcompresstlen(tinputterrorstoutput((s.\Lib\encodings\bz2_codec.pyt
bz2_encodes
cCs1|dkst<00>tj|<00>}|t|<00>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.
R(RRt
decompressR(RRR((s.\Lib\encodings\bz2_codec.pyt
bz2_decodestCodeccBs eZdd<00>Zdd<00>ZRS(RcCs t||<00>S(N(R(tselfRR((s.\Lib\encodings\bz2_codec.pytencode1scCs t||<00>S(N(R
(R RR((s.\Lib\encodings\bz2_codec.pytdecode3s(t__name__t
__module__R R(((s.\Lib\encodings\bz2_codec.pyR /s tIncrementalEncodercBs)eZdd<00>Zed<00>Zd<00>ZRS(RcCs.|dkst<00>||_tj<00>|_dS(NR(RRRt BZ2Compressort compressobj(R R((s.\Lib\encodings\bz2_codec.pyt__init__7s cCs=|r)|jj|<00>}||jj<00>S|jj|<00>SdS(N(RRtflush(R Rtfinaltc((s.\Lib\encodings\bz2_codec.pyR <scCstj<00>|_dS(N(RRR(R ((s.\Lib\encodings\bz2_codec.pytresetCs(RRRtFalseR R(((s.\Lib\encodings\bz2_codec.pyR6s  tIncrementalDecodercBs)eZdd<00>Zed<00>Zd<00>ZRS(RcCs.|dkst<00>||_tj<00>|_dS(NR(RRRtBZ2Decompressort decompressobj(R R((s.\Lib\encodings\bz2_codec.pyRGs cCs-y|jj|<00>SWntk
r(dSXdS(Nt(RR tEOFError(R RR((s.\Lib\encodings\bz2_codec.pyRLs cCstj<00>|_dS(N(RRR(R ((s.\Lib\encodings\bz2_codec.pyRRs(RRRRRR(((s.\Lib\encodings\bz2_codec.pyRFs  t StreamWritercBseZRS((RR(((s.\Lib\encodings\bz2_codec.pyRUst StreamReadercBseZRS((RR(((s.\Lib\encodings\bz2_codec.pyR XscCs4tjdddtdtdtdtdtdt<00>S( NtnameRR Rtincrementalencodertincrementaldecodert streamwritert streamreader(tcodecst CodecInfoRR
RRRR (((s.\Lib\encodings\bz2_codec.pyt getregentry]s ( t__doc__R&RRR
R RRRR R((((s.\Lib\encodings\bz2_codec.pyt<module> s