HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python2.7/weakref.pyc
ó
’,bc@sîdZddlZddlmZmZmZmZmZmZm	Z	ddl
mZmZddl
mZeefZdddd	d
ddd
ddddgZdejfd„ƒYZdefd„ƒYZd
ejfd„ƒYZdS(s{Weak reference support for Python.

This module is an implementation of PEP 205:

http://www.python.org/dev/peps/pep-0205/
iÿÿÿÿN(tgetweakrefcounttgetweakrefstreftproxytCallableProxyTypet	ProxyTypet
ReferenceType(tWeakSett_IterationGuard(tReferenceErrorRRRRtWeakKeyDictionaryR	RRRt
ProxyTypestWeakValueDictionaryRcBsïeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„ZeZ
d„Zdd„Zd
„Zd„Zd„ZeZd„Zd„Zd„Zd„Zdd„Zd„Zd„Zd„ZRS(s›Mapping class that references values weakly.

    Entries in the dictionary will be discarded when no strong
    reference to the value exists anymore
    cOsž|stdƒ‚n|d}|d}t|ƒdkrTtdt|ƒƒ‚nt|ƒd„}||_g|_tƒ|_tjj|||ŽdS(NsGdescriptor '__init__' of 'WeakValueDictionary' object needs an argumentiis$expected at most 1 arguments, got %dcSsH|ƒ}|dk	rD|jr4|jj|jƒqD|j|j=ndS(N(tNonet
_iteratingt_pending_removalstappendtkeytdata(twrtselfreftself((s/usr/lib/python2.7/weakref.pytremove7s
		(	t	TypeErrortlenRt_removeRtsetRtUserDictt__init__(targstkwRR((s/usr/lib/python2.7/weakref.pyR/s

		cCs0|j}|j}x|r+||jƒ=qWdS(N(RRtpop(Rtltd((s/usr/lib/python2.7/weakref.pyt_commit_removalsDs			cCs0|j|ƒ}|dkr(t|‚n|SdS(N(RR
tKeyError(RRto((s/usr/lib/python2.7/weakref.pyt__getitem__LscCs$|jr|jƒn|j|=dS(N(RR"R(RR((s/usr/lib/python2.7/weakref.pyt__delitem__Ss	
cCs3y|j|ƒ}Wntk
r(tSX|dk	S(N(RR#tFalseR
(RRR$((s/usr/lib/python2.7/weakref.pyt__contains__Xs

cCs3y|j|ƒ}Wntk
r(tSX|dk	S(N(RR#R'R
(RRR$((s/usr/lib/python2.7/weakref.pythas_key_s

cCsdt|ƒS(Ns<WeakValueDictionary at %s>(tid(R((s/usr/lib/python2.7/weakref.pyt__repr__fscCs6|jr|jƒnt||j|ƒ|j|<dS(N(RR"tKeyedRefRR(RRtvalue((s/usr/lib/python2.7/weakref.pyt__setitem__is	
cCs'|jr|jƒn|jjƒdS(N(RR"Rtclear(R((s/usr/lib/python2.7/weakref.pyR/ns	
cCsOtƒ}x?|jjƒD].\}}|ƒ}|dk	r|||<qqW|S(N(RRtitemsR
(RtnewRRR$((s/usr/lib/python2.7/weakref.pytcopyss		cCskddlm}|jƒ}xH|jjƒD]7\}}|ƒ}|dk	r,|||||ƒ<q,q,W|S(Niÿÿÿÿ(tdeepcopy(R2R3t	__class__RR0R
(RtmemoR3R1RRR$((s/usr/lib/python2.7/weakref.pyt__deepcopy__}s	cCsGy|j|}Wntk
r%|SX|ƒ}|dkr?|S|SdS(N(RR#R
(RRtdefaultRR$((s/usr/lib/python2.7/weakref.pytget†s
	cCsUg}xH|jjƒD]7\}}|ƒ}|dk	r|j||fƒqqW|S(N(RR0R
R(RtLRRR$((s/usr/lib/python2.7/weakref.pyR0“s	ccsWt|ƒEx=|jjƒD],}|ƒ}|dk	r|j|fVqqWWdQXdS(N(RRt
itervaluesR
R(RRR-((s/usr/lib/python2.7/weakref.pyt	iteritems›s

	ccs6t|ƒ$x|jjƒD]}|VqWWdQXdS(N(RRtiterkeys(Rtk((s/usr/lib/python2.7/weakref.pyR<¢s
ccs6t|ƒ$x|jjƒD]}|VqWWdQXdS(sReturn an iterator that yields the weak references to the values.

        The references are not guaranteed to be 'live' at the time
        they are used, so the result of calling the references needs
        to be checked before being used.  This can be used to avoid
        creating references that will cause the garbage collector to
        keep the values around longer than needed.

        N(RRR:(RR((s/usr/lib/python2.7/weakref.pyt
itervaluerefs©s

ccsNt|ƒ<x4|jjƒD]#}|ƒ}|dk	r|VqqWWdQXdS(N(RRR:R
(RRtobj((s/usr/lib/python2.7/weakref.pyR:·s

	cCsU|jr|jƒnx8|jjƒ\}}|ƒ}|dk	r||fSqWdS(N(RR"RtpopitemR
(RRRR$((s/usr/lib/python2.7/weakref.pyR@¾s	
	cGst|jr|jƒny|jj|ƒƒ}Wn"tk
rS|rM|dS‚nX|dkrlt|‚n|SdS(Ni(RR"RRR#R
(RRRR$((s/usr/lib/python2.7/weakref.pyRÇs	

cCscy|j|}WnDtk
rW|jr7|jƒnt||j|ƒ|j|<|SX|ƒSdS(N(RR#RR"R,R(RRR7R((s/usr/lib/python2.7/weakref.pyt
setdefaultÕs
	
cOs|stdƒ‚n|d}|d}t|ƒdkrTtdt|ƒƒ‚n|rd|dnd}|jr€|jƒn|j}|dk	ròt|dƒs¹tiƒ|ƒ}nx6|jƒD]%\}}t	||j
|ƒ||<qÆWnt|ƒr|j|ƒndS(NsEdescriptor 'update' of 'WeakValueDictionary' object needs an argumentiis$expected at most 1 arguments, got %dR0(RRR
RR"RthasattrttypeR0R,Rtupdate(RtkwargsRtdictR!RR$((s/usr/lib/python2.7/weakref.pyRDàs"

	
	 cCs
|jjƒS(s~Return a list of weak references to the values.

        The references are not guaranteed to be 'live' at the time
        they are used, so the result of calling the references needs
        to be checked before being used.  This can be used to avoid
        creating references that will cause the garbage collector to
        keep the values around longer than needed.

        (Rtvalues(R((s/usr/lib/python2.7/weakref.pyt	valuerefsôs
cCsIg}x<|jjƒD]+}|ƒ}|dk	r|j|ƒqqW|S(N(RRGR
R(RR9RR$((s/usr/lib/python2.7/weakref.pyRGs	N(t__name__t
__module__t__doc__RR"R%R&R(R)R+R.R/R2t__copy__R6R
R8R0R;R<t__iter__R>R:R@RRARDRHRG(((s/usr/lib/python2.7/weakref.pyR#s4												
										R,cBs&eZdZdZd„Zd„ZRS(s[Specialized reference that includes a key corresponding to the value.

    This is used in the WeakValueDictionary to avoid having to create
    a function object for each key stored in the mapping.  A shared
    callback object can use the 'key' attribute of a KeyedRef instead
    of getting a reference to the key from an enclosing scope.

    RcCs"tj|||ƒ}||_|S(N(Rt__new__R(RCtobtcallbackRR((s/usr/lib/python2.7/weakref.pyRNs	cCstt|ƒj||ƒdS(N(tsuperR,R(RRORPR((s/usr/lib/python2.7/weakref.pyRs(R(RIRJRKt	__slots__RNR(((s/usr/lib/python2.7/weakref.pyR,	s	cBsìeZdZdd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
e
Zd„Zdd	„Z
d
„Zd„Zd„Zd
„Zd„Zd„ZeZd„Zd„Zd„Zd„Zd„Zdd„Zdd„ZRS(s‰ Mapping class that references keys weakly.

    Entries in the dictionary will be discarded when there is no
    longer a strong reference to the key. This can be used to
    associate additional data with an object owned by other parts of
    an application without adding attributes to those objects. This
    can be especially useful with objects that override attribute
    accesses.
    cCsYi|_t|ƒd„}||_g|_tƒ|_|dk	rU|j|ƒndS(NcSsB|ƒ}|dk	r>|jr1|jj|ƒq>|j|=ndS(N(R
RRRR(R=RR((s/usr/lib/python2.7/weakref.pyR+s
		(RRRRRRR
RD(RRFR((s/usr/lib/python2.7/weakref.pyR)s			cCsH|j}|j}x/|rCy||jƒ=Wqtk
r?qXqWdS(N(RRRR#(RR R!((s/usr/lib/python2.7/weakref.pyR"9s			
cCs|jt|ƒ=dS(N(RR(RR((s/usr/lib/python2.7/weakref.pyR&FscCs|jt|ƒS(N(RR(RR((s/usr/lib/python2.7/weakref.pyR%IscCsdt|ƒS(Ns<WeakKeyDictionary at %s>(R*(R((s/usr/lib/python2.7/weakref.pyR+LscCs||jt||jƒ<dS(N(RRR(RRR-((s/usr/lib/python2.7/weakref.pyR.OscCsOtƒ}x?|jjƒD].\}}|ƒ}|dk	r|||<qqW|S(N(R
RR0R
(RR1RR-R$((s/usr/lib/python2.7/weakref.pyR2Rs		cCskddlm}|jƒ}xH|jjƒD]7\}}|ƒ}|dk	r,|||ƒ||<q,q,W|S(Niÿÿÿÿ(R3(R2R3R4RR0R
(RR5R3R1RR-R$((s/usr/lib/python2.7/weakref.pyR6\s	cCs|jjt|ƒ|ƒS(N(RR8R(RRR7((s/usr/lib/python2.7/weakref.pyR8escCs2yt|ƒ}Wntk
r$dSX||jkS(Ni(RRR(RRR((s/usr/lib/python2.7/weakref.pyR)hs

cCs2yt|ƒ}Wntk
r$dSX||jkS(Ni(RRR(RRR((s/usr/lib/python2.7/weakref.pyR(os

cCsUg}xH|jjƒD]7\}}|ƒ}|dk	r|j||fƒqqW|S(N(RR0R
R(RR9RR-R$((s/usr/lib/python2.7/weakref.pyR0vs	ccsZt|ƒHx@|jjƒD]/\}}|ƒ}|dk	r||fVqqWWdQXdS(N(RRR;R
(RRR-R((s/usr/lib/python2.7/weakref.pyR;~s

	ccs6t|ƒ$x|jjƒD]}|VqWWdQXdS(sŒReturn an iterator that yields the weak references to the keys.

        The references are not guaranteed to be 'live' at the time
        they are used, so the result of calling the references needs
        to be checked before being used.  This can be used to avoid
        creating references that will cause the garbage collector to
        keep the keys around longer than needed.

        N(RRR<(RR((s/usr/lib/python2.7/weakref.pytiterkeyrefs…s

ccsNt|ƒ<x4|jjƒD]#}|ƒ}|dk	r|VqqWWdQXdS(N(RRR<R
(RRR?((s/usr/lib/python2.7/weakref.pyR<“s

	ccs6t|ƒ$x|jjƒD]}|VqWWdQXdS(N(RRR:(RR-((s/usr/lib/python2.7/weakref.pyR:œs
cCs
|jjƒS(szReturn a list of weak references to the keys.

        The references are not guaranteed to be 'live' at the time
        they are used, so the result of calling the references needs
        to be checked before being used.  This can be used to avoid
        creating references that will cause the garbage collector to
        keep the keys around longer than needed.

        (Rtkeys(R((s/usr/lib/python2.7/weakref.pytkeyrefs¡s
cCsIg}x<|jjƒD]+}|ƒ}|dk	r|j|ƒqqW|S(N(RRTR
R(RR9RR$((s/usr/lib/python2.7/weakref.pyRT­s	cCs?x8|jjƒ\}}|ƒ}|dk	r||fSqWdS(N(RR@R
(RRR-R$((s/usr/lib/python2.7/weakref.pyR@µs
	cGs|jjt|ƒ|ŒS(N(RRR(RRR((s/usr/lib/python2.7/weakref.pyR¼scCs|jjt||jƒ|ƒS(N(RRARR(RRR7((s/usr/lib/python2.7/weakref.pyRA¿scKs|j}|dk	rot|dƒs9tiƒ|ƒ}nx3|jƒD]"\}}||t||jƒ<qFWnt|ƒr‹|j|ƒndS(NR0(	RR
RBRCR0RRRRD(RRFRER!RR-((s/usr/lib/python2.7/weakref.pyRDÂs	N(RIRJRKR
RR"R&R%R+R.R2RLR6R8R)R(R0R;RSR<RMR:RURTR@RRARD(((s/usr/lib/python2.7/weakref.pyR
s2		
																		(RKRt_weakrefRRRRRRRt_weakrefsetRRt
exceptionsR	Rt__all__RR,R
(((s/usr/lib/python2.7/weakref.pyt<module>s4	æ