Lc@sdZdZddkTddklZddklZlZlZddkZddk Z ddk Z ddk Z ddd d d d d ddg Z dZ dddddgZdZeiZdefdYZdefdYZd efdYZdefdYZyddklZWnej o eZnXyeWnej o eZnXdZdZdZdZ d Z!d!Z"d"Z#d#Z$d$Z%d%Z&d&Z'd'Z(d(Z)d)Z*d*Z+d+Z,d,Z-d-Z.d.Z/d/Z0d0Z1d1Z2d2Z3d3Z4d4Z5d5Z6d6Z7d7Z8d8Z9d9Z:d:Z;d;Z<d<Z=d=Z>d>Z?d?Z@d@ZAdAZBdBZCdCZDdDZEdEZFdFZGdGZHdHZIdIZJdJZKdKZLdLZMdMZNdNZOdOZPdPZQdQZRdRZSeCeMeNeOgZTe iUgZVeWD]$ZXe iYdSeXo eVeXnq[V[Xd fdTYZZdUZ[hZ\dVZ]d fdWYZ^dXfdYYZ_ddk`ZadZZbd[Zcydd\kdleZeWn#ej odd\keleZenXed]Zfed^Zgd_Zhd`ZdaZiejdbjo eindS(csCreate portable serialized representations of Python objects. See module cPickle for a (much) faster implementation. See module copy_reg for a mechanism for registering custom picklers. See module pickletools source for extensive comments. Classes: Pickler Unpickler Functions: dump(object, file) dumps(object) -> string load(file) -> object loads(string) -> object Misc variables: __version__ format_version compatible_formats s$Revision: 65524 $i(t*(tdispatch_table(t_extension_registryt_inverted_registryt_extension_cacheNt PickleErrort PicklingErrortUnpicklingErrortPicklert Unpicklertdumptdumpstloadtloadss2.0s1.0s1.1s1.2s1.3icBseZdZRS(s6A common base class for the other pickling exceptions.(t__name__t __module__t__doc__(((s/usr/lib64/python2.6/pickle.pyR:scBseZdZRS(s]This exception is raised when an unpicklable object is passed to the dump() method. (RRR(((s/usr/lib64/python2.6/pickle.pyR>scBseZdZRS(sThis exception is raised when there is a problem unpickling an object, such as a security violation. Note that other exceptions may also be raised during unpickling, including (but not necessarily limited to) AttributeError, EOFError, ImportError, and IndexError. (RRR(((s/usr/lib64/python2.6/pickle.pyREst_StopcBseZdZRS(cCs ||_dS(N(tvalue(tselfR((s/usr/lib64/python2.6/pickle.pyt__init__Ss(RRR(((s/usr/lib64/python2.6/pickle.pyRRs(t PyStringMapt(t.t0t1t2tFtItJtKtLtMtNtPtQtRtStTtUtVtXtatbtctdt}tetgthtitjtlt]totptqtrtsttt)tutGsI01 sI00 sssssssssssss[A-Z][A-Z0-9_]+$cBseZddZdZdZdZeidZ eidZ dZ dZ dZ ddddd ZhZd Zeeeds (RFRBtBINFLOATtFLOATRY(RRPRZ((s/usr/lib64/python2.6/pickle.pyt save_floats cCs|ioZt|}|djo|itt||q|it|d||n|itt|d|i|dS(Nisdii(RR(Rtunpack((s/usr/lib64/python2.6/pickle.pyt load_binfloatscCs|id }xcdD]R}|i|o<|i|p tdn|t|t| !}PqqWtd|i|iddS(Nis"'sinsecure string pickles string-escape(Rt startswithtendswithRARQRtdecode(RtrepR8((s/usr/lib64/python2.6/pickle.pyt load_strings   cCs3td|id}|i|i|dS(NR2i(R RR(RRQ((s/usr/lib64/python2.6/pickle.pytload_binstringscCs$|it|id ddS(Nisraw-unicode-escape(RRR(R((s/usr/lib64/python2.6/pickle.pyt load_unicodescCs<td|id}|it|i|ddS(NR2isutf-8(R RRR(RRQ((s/usr/lib64/python2.6/pickle.pytload_binunicodescCs/t|id}|i|i|dS(Ni(RRR(RRQ((s/usr/lib64/python2.6/pickle.pytload_short_binstringscCs1|i}t|i|dg|i|)dS(Ni(RttupleR(RR((s/usr/lib64/python2.6/pickle.pyt load_tuples cCs|iiddS(N((RR(R((s/usr/lib64/python2.6/pickle.pytload_empty_tuplescCs|idf|idRR?RR@tDUPRAR]RBR[RCR\RDRXRERVRFRWRHRRJRRLRRMRRTRRURRVRO(((s/usr/lib64/python2.6/pickle.pyR ;s                                                                                                            R-cBseZRS((RR(((s/usr/lib64/python2.6/pickle.pyR-scCs|djodS|djo|t|}d|id}t||}|d@od|d}qt|dddjod |d}qnt| }d|id}t||}|d@o|d7}n|d }|d |>7}t|}d|id}t||}||jod d |||d}nt|dddjod|d}n|ido|dd!}n |d}ti|}|dddS(sEncode a long to a two's complement little-endian binary string. Note that 0L is a special case, returning an empty string, to save a byte in the LONG1 pickling context. >>> encode_long(0L) '' >>> encode_long(255L) '\xff\x00' >>> encode_long(32767L) '\xff\x7f' >>> encode_long(-256L) '\x00\xff' >>> encode_long(-32768L) '\x00\x80' >>> encode_long(-128L) '\x80' >>> encode_long(127L) '\x7f' >>> iRwiRit0x0iit0x00ilt0xRt0xffiN(thexRRQRDt _binasciit unhexlify(Rntashext njunkcharstnibblestnbitst newnibblestbinary((s/usr/lib64/python2.6/pickle.pyRs:          cCstt|}|djodSti|ddd}t|d}|ddjo|d|d>8}n|S( s\Decode a long from a two's complement little-endian binary string. >>> decode_long('') 0L >>> decode_long("\xff\x00") 255L >>> decode_long("\xff\x7f") 32767L >>> decode_long("\x00\xff") -256L >>> decode_long("\x00\x80") -32768L >>> decode_long("\x80") -128L >>> decode_long("\x7f") 127L ilNiisli(RQR`thexlifyR(R tnbytesRbR((s/usr/lib64/python2.6/pickle.pyR.s  (tStringIOcCst||i|dS(N(RR (RPRHRI((s/usr/lib64/python2.6/pickle.pyR QscCs)t}t||i||iS(N(RjRR tgetvalue(RPRIRH((s/usr/lib64/python2.6/pickle.pyR Ts cCst|iS(N(R R (RH((s/usr/lib64/python2.6/pickle.pyR YscCst|}t|iS(N(RjR R (RuRH((s/usr/lib64/python2.6/pickle.pyR \s cCsddk}|iS(Ni(tdoctestttestmod(Rl((s/usr/lib64/python2.6/pickle.pyt_testbs R(kRt __version__ttypestcopy_regRRRRtmarshalRRtret__all__tformat_versiontcompatible_formatsR@R R t ExceptionRRRRtorg.python.coreRRR?Rt NameErrorRRORRRZRRRRRRRRtRsR~RRRRRRRRRRRR]R[RR\RRRRXRVRWRRRRRRRRLR}RRRRWRXRYRRRRRRIt_[1]tdirRntmatchRRRRR R-tbinasciiR`RRt cStringIORjR R R RnR(((s/usr/lib64/python2.6/pickle.pyts           B`    B