MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/3/root/usr/lib/python2.4/copy_reg.pyo
mò
‚=5Dc@sÙdZdklZdddddgZhZdd„Zd„Zye	Wne
j
onXd	„Zee	ee	ƒd
„Zdd>Z
d
„Zd„Zd„ZhZhZhZd„Zd„Zd„ZdS(s¬Helper to provide extensibility for pickle/cPickle.

This is only useful to add pickle support for extension types defined in
C, not for instances of user-defined classes.
(s	ClassTypetpickletconstructort
add_extensiontremove_extensiontclear_extension_cachecCsit|ƒtjotdƒ‚nt|ƒptdƒ‚n|t|<|dj	ot	|ƒndS(Ns-copy_reg is not intended for use with classess$reduction functions must be callable(
ttypetob_typet
_ClassTypet	TypeErrortcallabletpickle_functiontdispatch_tabletconstructor_obtNoneR(RR
R((t/usr/lib/python2.4/copy_reg.pyRs


cCs!t|ƒptdƒ‚ndS(Nsconstructors must be callable(R	tobjectR(R((RRs
cCst|i|iffS(N(tcomplextctrealtimag(R((Rtpickle_complex'scCsF|tjoti|ƒ}n#|i||ƒ}|i||ƒ|S(N(tbaseRt__new__tclstobjtstatet__init__(RRRR((Rt_reconstructor.s

ii	cCs8x>|iiD]*}t|dƒo|it@oPq
q
Wt}|tjo
d}n1||ijot
d|i‚n||ƒ}|i||f}y
|i
}Wn_tj
oSt|ddƒot
dƒ‚ny
|i}Wqtj
o
d}qXnX|ƒ}|ot||fSnt|fSdS(Nt	__flags__scan't pickle %s objectst	__slots__sNa class that defines __slots__ without defining __getstate__ cannot be pickled(tselft	__class__t__mro__RthasattrRt	_HEAPTYPERR
RRt__name__targst__getstate__tgetstatetAttributeErrortgetattrt__dict__tdictR(RtprotoR$R&RRR*((Rt
_reduce_ex:s2
	



	cGs|i||ŒS(N(RRR$(RR$((Rt
__newobj__[scCsÁ|iidƒ}|dj	o|Sng}t|dƒpnfxb|iD]W}d|ijoA|g}|idD]}|djo||qvqv~7}qKqKWy
||_
WnnX|S(s›Return a list of slot names for a given class.

    This needs to find slots defined by the class and its bases, so we
    can't simply return the __slots__ attribute.  We must walk down
    the Method Resolution Order and concatenate the __slots__ of each
    class found there.  (This assumes classes don't modify their
    __slots__ attribute to misrepresent their slots after the class is
    defined.)
    t
__slotnames__RR)t__weakref__N(s__dict__s__weakref__(RR)tgettnamesR
R!R Rt_[1]tnameR.(RRR3R2R1((Rt
_slotnames^s 	

E
cCsåt|ƒ}d|jo
djnp
td‚n||f}ti|ƒ|joti|ƒ|jodSn|tjotd|t|fƒ‚n|tjotd|t|fƒ‚n|t|<|t|<dS(sRegister an extension code.iiÿÿÿscode out of rangeNs)key %s is already registered with code %ss$code %s is already in use for key %s(	tinttcodet
ValueErrortmoduleR3tkeyt_extension_registryR0t_inverted_registry(R8R3R6R9((RR‘s
,


cCs|||f}ti|ƒ|jpti|ƒ|jotd||fƒ‚nt|=t|=|tjot|=ndS(s0Unregister an extension code.  For testing only.s%key %s is not registered with code %sN(	R8R3R9R:R0R6R;R7t_extension_cache(R8R3R6R9((RR£s,
cCstiƒdS(N(R<tclear(((RR¯sN(t__doc__ttypest	ClassTypeRt__all__RR
RRRt	NameErrorRRR"R,R-R4R:R;R<RRR(R;RRAR:R<RR-R"R,RRRRRR4RR((Rt?s,

			
	!		-