You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
14 lines
306 B
Python
14 lines
306 B
Python
# From 2.3 Queue.py
|
|
# Bug was adding COME_FROM from while
|
|
# confusing the else
|
|
def put(item, block=True, timeout=None):
|
|
if block:
|
|
if timeout:
|
|
while True:
|
|
if item:
|
|
block = 1
|
|
else:
|
|
block = 5
|
|
elif item:
|
|
block = False
|