/opt/imh-python/lib/python3.9/asyncio/__pycache__
NameSizeModeActions
base_events.cpython-39.opt-1.pyc518380644editdlrm
base_events.cpython-39.opt-2.pyc428090644editdlrm
base_events.cpython-39.pyc520330644editdlrm
base_futures.cpython-39.opt-1.pyc19190644editdlrm
base_futures.cpython-39.opt-2.pyc16650644editdlrm
base_futures.cpython-39.pyc19190644editdlrm
base_subprocess.cpython-39.opt-1.pyc93510644editdlrm
base_subprocess.cpython-39.opt-2.pyc92510644editdlrm
base_subprocess.cpython-39.pyc94210644editdlrm
base_tasks.cpython-39.opt-1.pyc19550644editdlrm
base_tasks.cpython-39.opt-2.pyc19550644editdlrm
base_tasks.cpython-39.pyc19550644editdlrm
constants.cpython-39.opt-1.pyc5920644editdlrm
constants.cpython-39.opt-2.pyc5920644editdlrm
constants.cpython-39.pyc5920644editdlrm
coroutines.cpython-39.opt-1.pyc65840644editdlrm
coroutines.cpython-39.opt-2.pyc63520644editdlrm
coroutines.cpython-39.pyc66480644editdlrm
events.cpython-39.opt-1.pyc280300644editdlrm
events.cpython-39.opt-2.pyc189330644editdlrm
events.cpython-39.pyc281120644editdlrm
exceptions.cpython-39.opt-1.pyc25640644editdlrm
exceptions.cpython-39.opt-2.pyc19200644editdlrm
exceptions.cpython-39.pyc25640644editdlrm
format_helpers.cpython-39.opt-1.pyc23350644editdlrm
format_helpers.cpython-39.opt-2.pyc20910644editdlrm
format_helpers.cpython-39.pyc23350644editdlrm
futures.cpython-39.opt-1.pyc116890644editdlrm
futures.cpython-39.opt-2.pyc81830644editdlrm
futures.cpython-39.pyc118400644editdlrm
locks.cpython-39.opt-1.pyc144400644editdlrm
locks.cpython-39.opt-2.pyc82020644editdlrm
locks.cpython-39.pyc144400644editdlrm
log.cpython-39.opt-1.pyc2370644editdlrm
log.cpython-39.opt-2.pyc1980644editdlrm
log.cpython-39.pyc2370644editdlrm
proactor_events.cpython-39.opt-1.pyc241300644editdlrm
proactor_events.cpython-39.opt-2.pyc237300644editdlrm
proactor_events.cpython-39.pyc243600644editdlrm
protocols.cpython-39.opt-1.pyc86250644editdlrm
protocols.cpython-39.opt-2.pyc33660644editdlrm
protocols.cpython-39.pyc86250644editdlrm
queues.cpython-39.opt-1.pyc85270644editdlrm
queues.cpython-39.opt-2.pyc58480644editdlrm
queues.cpython-39.pyc85270644editdlrm
runners.cpython-39.opt-1.pyc22170644editdlrm
runners.cpython-39.opt-2.pyc15350644editdlrm
runners.cpython-39.pyc22170644editdlrm
selector_events.cpython-39.opt-1.pyc297980644editdlrm
selector_events.cpython-39.opt-2.pyc281520644editdlrm
selector_events.cpython-39.pyc298420644editdlrm
sslproto.cpython-39.opt-1.pyc214030644editdlrm
sslproto.cpython-39.opt-2.pyc146000644editdlrm
sslproto.cpython-39.pyc215670644editdlrm
staggered.cpython-39.opt-1.pyc40180644editdlrm
staggered.cpython-39.opt-2.pyc18850644editdlrm
staggered.cpython-39.pyc41710644editdlrm
streams.cpython-39.opt-1.pyc203700644editdlrm
streams.cpython-39.opt-2.pyc144760644editdlrm
streams.cpython-39.pyc205970644editdlrm
subprocess.cpython-39.opt-1.pyc73310644editdlrm
subprocess.cpython-39.opt-2.pyc72030644editdlrm
subprocess.cpython-39.pyc73450644editdlrm
tasks.cpython-39.opt-1.pyc241600644editdlrm
tasks.cpython-39.opt-2.pyc169090644editdlrm
tasks.cpython-39.pyc242000644editdlrm
threads.cpython-39.opt-1.pyc9890644editdlrm
threads.cpython-39.opt-2.pyc5230644editdlrm
threads.cpython-39.pyc9890644editdlrm
transports.cpython-39.opt-1.pyc122430644editdlrm
transports.cpython-39.opt-2.pyc68420644editdlrm
transports.cpython-39.pyc122570644editdlrm
trsock.cpython-39.opt-1.pyc85800644editdlrm
trsock.cpython-39.opt-2.pyc83240644editdlrm
trsock.cpython-39.pyc85800644editdlrm
unix_events.cpython-39.opt-1.pyc417460644editdlrm
unix_events.cpython-39.opt-2.pyc365230644editdlrm
unix_events.cpython-39.pyc420660644editdlrm
windows_events.cpython-39.opt-1.pyc246300644editdlrm
windows_events.cpython-39.opt-2.pyc235230644editdlrm
windows_events.cpython-39.pyc246460644editdlrm
windows_utils.cpython-39.opt-1.pyc44460644editdlrm
windows_utils.cpython-39.opt-2.pyc40120644editdlrm
windows_utils.cpython-39.pyc45140644editdlrm
__init__.cpython-39.opt-1.pyc7900644editdlrm
__init__.cpython-39.opt-2.pyc7340644editdlrm
__init__.cpython-39.pyc7900644editdlrm
__main__.cpython-39.opt-1.pyc31790644editdlrm
__main__.cpython-39.opt-2.pyc31790644editdlrm
__main__.cpython-39.pyc31790644editdlrm
Edit: /opt/imh-python/lib/python3.9/asyncio/__pycache__/queues.cpython-39.pyc (8527B)
a bhY @sdZddlZddlZddlZddlmZddlmZGdddeZGdd d eZ Gd d d Z Gd d d e Z Gddde Z dS))Queue PriorityQueue LifoQueue QueueFull QueueEmptyN)events)locksc@seZdZdZdS)rz;Raised when Queue.get_nowait() is called on an empty Queue.N__name__ __module__ __qualname____doc__rr//opt/imh-python/lib/python3.9/asyncio/queues.pyr src@seZdZdZdS)rzDRaised when the Queue.put_nowait() method is called on a full Queue.Nr rrrrrsrc@seZdZdZd+ddddZddZd d Zd d Zd dZddZ ddZ ddZ ddZ ddZ eddZddZddZdd Zd!d"Zd#d$Zd%d&Zd'd(Zd)d*ZdS),raA queue, useful for coordinating producer and consumer coroutines. If maxsize is less than or equal to zero, the queue size is infinite. If it is an integer greater than 0, then "await put()" will block when the queue reaches maxsize, until an item is removed by get(). Unlike the standard library Queue, you can reliably know this Queue's size with qsize(), since your single-threaded asyncio application won't be interrupted between calling qsize() and doing an operation on the Queue. rNloopcCsp|durt|_n||_tjdtdd||_t|_ t|_ d|_ t j |d|_|j||dS)Nz[The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.) stacklevelrr)rZget_event_loop_loopwarningswarnDeprecationWarning_maxsize collectionsdeque_getters_putters_unfinished_tasksr Event _finishedset_init)selfmaxsizerrrr__init__!s    zQueue.__init__cCst|_dSN)rr_queuer#r$rrrr"6sz Queue._initcCs |jSr&)r'popleftr#rrr_get9sz Queue._getcCs|j|dSr&r'appendr#itemrrr_put<sz Queue._putcCs&|r"|}|s|dq"qdSr&)r)done set_result)r#waiterswaiterrrr _wakeup_nextAs  zQueue._wakeup_nextcCs(dt|jdt|dd|dS)N)typer id_formatr*rrr__repr__IszQueue.__repr__cCsdt|jd|dS)Nr6r7r8)r9r r;r*rrr__str__Lsz Queue.__str__cCs|Sr&r)clsr9rrr__class_getitem__OszQueue.__class_getitem__cCs~d|j}t|ddr,|dt|j7}|jrH|dt|jd7}|jrd|dt|jd7}|jrz|d|j7}|S)Nzmaxsize=r'z _queue=z _getters[]z _putters[z tasks=)rgetattrlistr'rlenrr)r#resultrrrr;Rs  z Queue._formatcCs t|jS)zNumber of items in the queue.)rCr'r*rrrqsize^sz Queue.qsizecCs|jS)z%Number of items allowed in the queue.)rr*rrrr$bsz Queue.maxsizecCs|j S)z3Return True if the queue is empty, False otherwise.r'r*rrremptygsz Queue.emptycCs |jdkrdS||jkSdS)zReturn True if there are maxsize items in the queue. Note: if the Queue was initialized with maxsize=0 (the default), then full() is never True. rFN)rrEr*rrrfullks z Queue.fullc s|r|j}|j|z|IdHWq|z|j|Wnty^Yn0|s||s|| |jYq0q| |S)zPut an item into the queue. Put an item into the queue. If the queue is full, wait until a free slot is available before adding item. N) rHr create_futurerr-cancelremove ValueError cancelledr5 put_nowait)r#r/Zputterrrrputvs     z Queue.putcCs>|r t|||jd7_|j||jdS)zyPut an item into the queue without blocking. If no free slot is immediately available, raise QueueFull. rN)rHrr0rr clearr5rr.rrrrNs   zQueue.put_nowaitc s|r|j}|j|z|IdHWq|z|j|Wnty^Yn0|s||s|| |jYq0q| S)zoRemove and return an item from the queue. If queue is empty, wait until an item is available. N) rGrrIrr-rJrKrLrMr5 get_nowait)r#getterrrrgets     z Queue.getcCs$|r t|}||j|S)zRemove and return an item from the queue. Return an item if one is immediately available, else raise QueueEmpty. )rGrr+r5rr.rrrrQs  zQueue.get_nowaitcCs8|jdkrtd|jd8_|jdkr4|jdS)a$Indicate that a formerly enqueued task is complete. Used by queue consumers. For each get() used to fetch a task, a subsequent call to task_done() tells the queue that the processing on the task is complete. If a join() is currently blocking, it will resume when all items have been processed (meaning that a task_done() call was received for every item that had been put() into the queue). Raises ValueError if called more times than there were items placed in the queue. rz!task_done() called too many timesrN)rrLr r!r*rrr task_dones   zQueue.task_donecs|jdkr|jIdHdS)aBlock until all items in the queue have been gotten and processed. The count of unfinished tasks goes up whenever an item is added to the queue. The count goes down whenever a consumer calls task_done() to indicate that the item was retrieved and all work on it is complete. When the count of unfinished tasks drops to zero, join() unblocks. rN)rr waitr*rrrjoins z Queue.join)r)r r r rr%r"r+r0r5r<r=r?r;rEpropertyr$rGrHrOrNrSrQrTrVrrrrrs*      rc@s4eZdZdZddZejfddZejfddZ dS) rzA subclass of Queue; retrieves entries in priority order (lowest first). Entries are typically tuples of the form: (priority number, data). cCs g|_dSr&rFr(rrrr"szPriorityQueue._initcCs||j|dSr&rF)r#r/heappushrrrr0szPriorityQueue._putcCs ||jSr&rF)r#heappoprrrr+szPriorityQueue._getN) r r r rr"heapqrXr0rYr+rrrrrsrc@s(eZdZdZddZddZddZdS) rzEA subclass of Queue that retrieves most recently added entries first.cCs g|_dSr&rFr(rrrr"szLifoQueue._initcCs|j|dSr&r,r.rrrr0szLifoQueue._putcCs |jSr&)r'popr*rrrr+szLifoQueue._getN)r r r rr"r0r+rrrrrsr) __all__rrZrrr Exceptionrrrrrrrrrs  N