Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10bc593 commit b8c9417Copy full SHA for b8c9417
1 file changed
Lib/Queue.py
@@ -1,18 +1,12 @@
1
"""A multi-producer, multi-consumer queue."""
2
3
-# define this exception to be compatible with Python 1.5's class
4
-# exceptions, but also when -X option is used.
5
-try:
6
- class Empty(Exception):
7
- pass
8
- class Full(Exception):
9
10
-except TypeError:
11
- # string based exceptions
12
- # exception raised by get(block=0)/get_nowait()
13
- Empty = 'Queue.Empty'
14
- # exception raised by put(block=0)/put_nowait()
15
- Full = 'Queue.Full'
+class Empty(Exception):
+ "Exception raised by Queue.get(block=0)/get_nowait()."
+ pass
+
+class Full(Exception):
+ "Exception raised by Queue.put(block=0)/put_nowait()."
16
17
class Queue:
18
def __init__(self, maxsize=0):
0 commit comments