b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 /
Filename/usr/lib64/python2.6/Queue.pyo
Size9.23 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 05:24
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc@s¶dZddklZddklZddkZddddd gZdefd
��YZdefd ��YZ ddd ��YZ
de
fd
��YZ d e
fd��YZ dS(s'A multi-producer, multi-consumer queue.iÿÿÿÿ(ttime(tdequeNtEmptytFulltQueuet
PriorityQueuet LifoQueuecBseZdZRS(s4Exception raised by Queue.get(block=0)/get_nowait().(t__name__t
__module__t__doc__(((s/usr/lib64/python2.6/Queue.pyR scBseZdZRS(s4Exception raised by Queue.put(block=0)/put_nowait().(RRR (((s/usr/lib64/python2.6/Queue.pyR
scBs�eZdZdd�Zd�Zd�Zd�Zd�Zd�Ze dd�Z d �Z e dd
�Z
d �Zd �Zed
�Zd�Zd�ZRS(sjCreate a queue object with a given maximum size.

If maxsize is <= 0, the queue size is infinite.
icCs£yddk}Wntj
oddk}nX||_|i|�|i�|_|i|i�|_|i|i�|_ |i|i�|_
d|_ dS(Niÿÿÿÿi( t threadingt ImportErrortdummy_threadingtmaxsizet_inittLocktmutext Conditiont not_emptytnot_fulltall_tasks_donetunfinished_tasks(tselfR
R
((s/usr/lib64/python2.6/Queue.pyt__init__s 
cCsw|ii�zU|id}|djo.|djotd��n|ii�n||_Wd|ii�XdS(s.Indicate that a formerly enqueued task is complete.

Used by Queue consumer threads. 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 a ValueError if called more times than there were items
placed in the queue.
iis!task_done() called too many timesN(RtacquireRt
ValueErrort
notify_alltrelease(Rt
unfinished((s/usr/lib64/python2.6/Queue.pyt task_done-s




cCsE|ii�z#x|io|ii�qWWd|ii�XdS(s�Blocks 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 thread calls task_done()
to indicate the item was retrieved and all work on it is complete.

When the count of unfinished tasks drops to zero, join() unblocks.
N(RRRtwaitR(R((s/usr/lib64/python2.6/Queue.pytjoinFs

cCs*|ii�|i�}|ii�|S(s9Return the approximate size of the queue (not reliable!).(RRt_qsizeR(Rtn((s/usr/lib64/python2.6/Queue.pytqsizeVs
 
cCs+|ii�|i� }|ii�|S(sCReturn True if the queue is empty, False otherwise (not reliable!).(RRR R(RR!((s/usr/lib64/python2.6/Queue.pytempty]s


cCsD|ii�d|ijo|i�jn}|ii�|S(sBReturn True if the queue is full, False otherwise (not reliable!).i(RRR
R R(RR!((s/usr/lib64/python2.6/Queue.pytfullds
&
cCsF|ii�z$|idjoç|p$|i�|ijo
t�qq|djo/x¨|i�|ijo|ii�q[Wq|djotd��qt�|}xS|i�|ijo8|t�}|djo
t�n|ii|�q´Wn|i |�|i
d7_
|i i �Wd|ii
�XdS(sPut an item into the queue.

If optional args 'block' is true and 'timeout' is None (the default),
block if necessary until a free slot is available. If 'timeout' is
a positive number, it blocks at most 'timeout' seconds and raises
the Full exception if no free slot was available within that time.
Otherwise ('block' is false), put an item on the queue if a free slot
is immediately available, else raise the Full exception ('timeout'
is ignored in that case).
is#'timeout' must be a positive numbergiN(RRR
R RtNoneRRt_timet_putRRtnotifyR(Rtitemtblockttimeouttendtimet remaining((s/usr/lib64/python2.6/Queue.pytputks.







cCs|i|t�S(s©Put an item into the queue without blocking.

Only enqueue the item if a free slot is immediately available.
Otherwise raise the Full exception.
(R.tFalse(RR)((s/usr/lib64/python2.6/Queue.pyt
put_nowait�scCs |ii�zé|p|i�p
t�qØn§|djo&x�|i�p|ii�qBWnt|djotd��nWt�|}xF|i�p8|t�}|djo
t�n|ii|�q�W|i�}|i i
�|SWd|ii �XdS(sRemove and return an item from the queue.

If optional args 'block' is true and 'timeout' is None (the default),
block if necessary until an item is available. If 'timeout' is
a positive number, it blocks at most 'timeout' seconds and raises
the Empty exception if no item was available within that time.
Otherwise ('block' is false), return an item if one is immediately
available, else raise the Empty exception ('timeout' is ignored
in that case).
is#'timeout' must be a positive numbergN( RRR RR%RRR&t_getRR(R(RR*R+R,R-R)((s/usr/lib64/python2.6/Queue.pytget�s,









 
cCs
|it�S(s«Remove and return an item from the queue without blocking.

Only get an item if one is immediately available. Otherwise
raise the Empty exception.
(R2R/(R((s/usr/lib64/python2.6/Queue.pyt
get_nowait¸scCst�|_dS(N(Rtqueue(RR
((s/usr/lib64/python2.6/Queue.pyRÅscCs
||i�S(N(R4(Rtlen((s/usr/lib64/python2.6/Queue.pyR ÈscCs|ii|�dS(N(R4tappend(RR)((s/usr/lib64/python2.6/Queue.pyR'ÌscCs
|ii�S(N(R4tpopleft(R((s/usr/lib64/python2.6/Queue.pyR1ÐsN(RRR RRRR"R#R$tTrueR%R.R0R2R3RR5R R'R1(((s/usr/lib64/python2.6/Queue.pyRs      # "
  cBsAeZdZd�Zed�Zeid�Zei d�Z
RS(s�Variant of Queue that retrieves open entries in priority order (lowest first).

Entries are typically tuples of the form: (priority number, data).
cCs
g|_dS(N(R4(RR
((s/usr/lib64/python2.6/Queue.pyRÚscCs
||i�S(N(R4(RR5((s/usr/lib64/python2.6/Queue.pyR ÝscCs||i|�dS(N(R4(RR)theappush((s/usr/lib64/python2.6/Queue.pyR'àscCs
||i�S(N(R4(Rtheappop((s/usr/lib64/python2.6/Queue.pyR1ãs( RRR RR5R theapqR9R'R:R1(((s/usr/lib64/python2.6/Queue.pyRÔs
  cBs5eZdZd�Zed�Zd�Zd�ZRS(sBVariant of Queue that retrieves most recently added entries first.cCs
g|_dS(N(R4(RR
((s/usr/lib64/python2.6/Queue.pyRêscCs
||i�S(N(R4(RR5((s/usr/lib64/python2.6/Queue.pyR íscCs|ii|�dS(N(R4R6(RR)((s/usr/lib64/python2.6/Queue.pyR'ðscCs
|ii�S(N(R4tpop(R((s/usr/lib64/python2.6/Queue.pyR1ós(RRR RR5R R'R1(((s/usr/lib64/python2.6/Queue.pyRçs
   ((
R RR&t collectionsRR;t__all__t ExceptionRRRRR(((s/usr/lib64/python2.6/Queue.pyt<module>s Ã