Server: appserver-7f0f8755-nginx-15961cad18524ec5a9db05f2a6a7e440
Current directory: /usr/lib/python2.7
Software: nginx/1.27.5
Shell Command
Create a new file
Upload file
File: weakref.pyc
� ӫ[c @ s� d Z d d l Z d d l m Z m Z m Z m Z m Z m Z m Z d d l m Z m Z d d l m Z e e f Z d d d d d d d d d d d d g Z d e j f d � � YZ d e f d � � YZ d e j f d � � YZ d S( s{ Weak reference support for Python. This module is an implementation of PEP 205: http://www.python.org/dev/peps/pep-0205/ i����N( t getweakrefcountt getweakrefst reft proxyt CallableProxyTypet ProxyTypet ReferenceType( t WeakSett _IterationGuard( t ReferenceErrorR R R R t WeakKeyDictionaryR R R R t ProxyTypest WeakValueDictionaryR c B s� e Z d Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z e Z d � Z d d � Z d � Z d � Z d � Z e Z d � Z d � Z d � Z d � Z d d � Z d � Z d � Z d � Z RS( s� Mapping class that references values weakly. Entries in the dictionary will be discarded when no strong reference to the value exists anymore c O s� | s t d � � n | d } | d } t | � d k rT t d t | � � � n t | � d � } | | _ g | _ t � | _ t j j | | | � d S( NsG descriptor '__init__' of 'WeakValueDictionary' object needs an argumenti i s$ expected at most 1 arguments, got %dc S sH | � } | d k rD | j r4 | j j | j � qD | j | j =n d S( N( t Nonet _iteratingt _pending_removalst appendt keyt data( t wrt selfreft self( ( s /usr/lib/python2.7/weakref.pyt remove7 s ( t TypeErrort lenR t _removeR t setR t UserDictt __init__( t argst kwR R ( ( s /usr/lib/python2.7/weakref.pyR / s c C s0 | j } | j } x | r+ | | j � =q Wd S( N( R R t pop( R t lt d( ( s /usr/lib/python2.7/weakref.pyt _commit_removalsD s c C s0 | j | � } | d k r( t | � n | Sd S( N( R R t KeyError( R R t o( ( s /usr/lib/python2.7/weakref.pyt __getitem__L s c C s$ | j r | j � n | j | =d S( N( R R" R ( R R ( ( s /usr/lib/python2.7/weakref.pyt __delitem__S s c C s3 y | j | � } Wn t k r( t SX| d k S( N( R R# t FalseR ( R R R$ ( ( s /usr/lib/python2.7/weakref.pyt __contains__X s c C s3 y | j | � } Wn t k r( t SX| d k S( N( R R# R' R ( R R R$ ( ( s /usr/lib/python2.7/weakref.pyt has_key_ s c C s d t | � S( Ns
( t id( R ( ( s /usr/lib/python2.7/weakref.pyt __repr__f s c C s6 | j r | j � n t | | j | � | j |