ó õ^‚Rc@sIddlmZdgZdefd„ƒYZdefd„ƒYZdS(iÿÿÿÿ(treftWeakSett_IterationGuardcBs#eZd„Zd„Zd„ZRS(cCst|ƒ|_dS(N(Rt weakcontainer(tselfR((s!/usr/lib/python2.7/_weakrefset.pyt__init__scCs/|jƒ}|dk r+|jj|ƒn|S(N(RtNonet _iteratingtadd(Rtw((s!/usr/lib/python2.7/_weakrefset.pyt __enter__s  cCsH|jƒ}|dk rD|j}|j|ƒ|sD|jƒqDndS(N(RRRtremovet_commit_removals(RtetttbR ts((s!/usr/lib/python2.7/_weakrefset.pyt__exit__s     (t__name__t __module__RR R(((s!/usr/lib/python2.7/_weakrefset.pyR s  cBsCeZdd„Zd„Zd„Zd„Zd„Zd„ZdZ d„Z d„Z d„Z d „Z d „Zd „Zd „Zd „Zd„ZeZd„Zd„Zd„ZeZd„Zd„Zd„ZeZd„Zd„ZeZd„Zd„Z d„Z!e!Z"d„Z#d„Z$d„Z%e%Z&d„Z'RS(cCs\tƒ|_t|ƒd„}||_g|_tƒ|_|dk rX|j|ƒndS(NcSsH|ƒ}|dk rD|jr1|jj|ƒqD|jj|ƒndS(N(RRt_pending_removalstappendtdatatdiscard(titemtselfrefR((s!/usr/lib/python2.7/_weakrefset.pyt_remove&s    (tsetRRRRRRtupdate(RRR((s!/usr/lib/python2.7/_weakrefset.pyR$s     cCs6|j}|jj}x|r1||jƒƒqWdS(N(RRRtpop(RtlR((s!/usr/lib/python2.7/_weakrefset.pyR 4s   ccsHt|ƒ6x.|jD]#}|ƒ}|dk r|VqqWWdQXdS(N(RRR(RtitemrefR((s!/usr/lib/python2.7/_weakrefset.pyt__iter__:s    cCst|jƒt|jƒS(N(tlenRR(R((s!/usr/lib/python2.7/_weakrefset.pyt__len__AscCs2yt|ƒ}Wntk r$tSX||jkS(N(Rt TypeErrortFalseR(RRtwr((s!/usr/lib/python2.7/_weakrefset.pyt __contains__Ds  cCs%|jt|ƒft|ddƒfS(Nt__dict__(t __class__tlisttgetattrR(R((s!/usr/lib/python2.7/_weakrefset.pyt __reduce__KscCs6|jr|jƒn|jjt||jƒƒdS(N(RR RRRR(RR((s!/usr/lib/python2.7/_weakrefset.pyRQs  cCs'|jr|jƒn|jjƒdS(N(RR Rtclear(R((s!/usr/lib/python2.7/_weakrefset.pyR,Vs  cCs |j|ƒS(N(R((R((s!/usr/lib/python2.7/_weakrefset.pytcopy[scCss|jr|jƒnxVtrny|jjƒ}Wntk rQtdƒ‚nX|ƒ}|dk r|SqWdS(Nspop from empty WeakSet(RR tTrueRRtKeyErrorR(RRR((s!/usr/lib/python2.7/_weakrefset.pyR^s      cCs0|jr|jƒn|jjt|ƒƒdS(N(RR RR R(RR((s!/usr/lib/python2.7/_weakrefset.pyR js  cCs0|jr|jƒn|jjt|ƒƒdS(N(RR RRR(RR((s!/usr/lib/python2.7/_weakrefset.pyRos  cCs8|jr|jƒnx|D]}|j|ƒqWdS(N(RR R(Rtothertelement((s!/usr/lib/python2.7/_weakrefset.pyRts   cCs|j|ƒ|S(N(R(RR0((s!/usr/lib/python2.7/_weakrefset.pyt__ior__zs cCs|jƒ}|j|ƒ|S(N(R-tdifference_update(RR0tnewset((s!/usr/lib/python2.7/_weakrefset.pyt difference~s  cCs|j|ƒdS(N(t__isub__(RR0((s!/usr/lib/python2.7/_weakrefset.pyR3„scCsP|jr|jƒn||kr2|jjƒn|jjd„|Dƒƒ|S(Ncss|]}t|ƒVqdS(N(R(t.0R((s!/usr/lib/python2.7/_weakrefset.pys Œs(RR RR,R3(RR0((s!/usr/lib/python2.7/_weakrefset.pyR6†s    csˆj‡fd†|DƒƒS(Nc3s!|]}|ˆkr|VqdS(N((R7R(R(s!/usr/lib/python2.7/_weakrefset.pys s(R((RR0((Rs!/usr/lib/python2.7/_weakrefset.pyt intersectionscCs|j|ƒdS(N(t__iand__(RR0((s!/usr/lib/python2.7/_weakrefset.pytintersection_update“scCs4|jr|jƒn|jjd„|Dƒƒ|S(Ncss|]}t|ƒVqdS(N(R(R7R((s!/usr/lib/python2.7/_weakrefset.pys ˜s(RR RR:(RR0((s!/usr/lib/python2.7/_weakrefset.pyR9•s  cCs|jjd„|DƒƒS(Ncss|]}t|ƒVqdS(N(R(R7R((s!/usr/lib/python2.7/_weakrefset.pys œs(Rtissubset(RR0((s!/usr/lib/python2.7/_weakrefset.pyR;›scCs|jtd„|DƒƒkS(Ncss|]}t|ƒVqdS(N(R(R7R((s!/usr/lib/python2.7/_weakrefset.pys  s(RR(RR0((s!/usr/lib/python2.7/_weakrefset.pyt__lt__ŸscCs|jjd„|DƒƒS(Ncss|]}t|ƒVqdS(N(R(R7R((s!/usr/lib/python2.7/_weakrefset.pys £s(Rt issuperset(RR0((s!/usr/lib/python2.7/_weakrefset.pyR=¢scCs|jtd„|DƒƒkS(Ncss|]}t|ƒVqdS(N(R(R7R((s!/usr/lib/python2.7/_weakrefset.pys §s(RR(RR0((s!/usr/lib/python2.7/_weakrefset.pyt__gt__¦scCs3t||jƒstS|jtd„|DƒƒkS(Ncss|]}t|ƒVqdS(N(R(R7R((s!/usr/lib/python2.7/_weakrefset.pys ¬s(t isinstanceR(tNotImplementedRR(RR0((s!/usr/lib/python2.7/_weakrefset.pyt__eq__©scCs|jƒ}|j|ƒ|S(N(R-tsymmetric_difference_update(RR0R4((s!/usr/lib/python2.7/_weakrefset.pytsymmetric_difference®s  cCs|j|ƒdS(N(t__ixor__(RR0((s!/usr/lib/python2.7/_weakrefset.pyRB´scsVˆjrˆjƒnˆ|kr2ˆjjƒn ˆjj‡fd†|DƒƒˆS(Nc3s!|]}t|ˆjƒVqdS(N(RR(R7R(R(s!/usr/lib/python2.7/_weakrefset.pys ¼s(RR RR,RB(RR0((Rs!/usr/lib/python2.7/_weakrefset.pyRD¶s     cCs|jd„||fDƒƒS(Ncss"|]}|D] }|Vq qdS(N((R7RR ((s!/usr/lib/python2.7/_weakrefset.pys Às(R((RR0((s!/usr/lib/python2.7/_weakrefset.pytunion¿scCst|j|ƒƒdkS(Ni(R!R8(RR0((s!/usr/lib/python2.7/_weakrefset.pyt isdisjointÃsN((RRRRR R R"R&R+t__hash__RR,R-RR RRR2R5t__sub__R3R6R8t__and__R:R9R;t__le__R<R=t__ge__R>RARCt__xor__RBRDREt__or__RF(((s!/usr/lib/python2.7/_weakrefset.pyR#sJ                          N(t_weakrefRt__all__tobjectRR(((s!/usr/lib/python2.7/_weakrefset.pyts