File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 15
15
runs-on : ubuntu-latest
16
16
strategy :
17
17
matrix :
18
- python-version : [3.7, 3.8]
18
+ python-version : [3.6, 3. 7, 3.8]
19
19
20
20
steps :
21
21
- uses : actions/checkout@v2
Original file line number Diff line number Diff line change 3
3
from enum import Enum
4
4
5
5
6
- SimpleQueue = queue .SimpleQueue
6
+ try :
7
+ SimpleQueue = queue .SimpleQueue
8
+ except :
9
+ SimpleQueue = queue .Queue
7
10
8
11
9
12
class QueuePolicy (Enum ):
@@ -20,7 +23,7 @@ class QueuePolicy(Enum):
20
23
BREADTHFIRST = 2
21
24
22
25
23
- class ProfilingQueue (queue . SimpleQueue ):
26
+ class ProfilingQueue (SimpleQueue ):
24
27
"""
25
28
A simple queue to enable profiling. This queue keeps track of its size over
26
29
time so that you can more easily debug performance.
@@ -42,7 +45,7 @@ def __init__(self):
42
45
43
46
"""
44
47
super (ProfilingQueue , self ).__init__ ()
45
- self ._size_history = queue . SimpleQueue ()
48
+ self ._size_history = SimpleQueue ()
46
49
self ._size = 0
47
50
48
51
def put (self , * args , ** kwargs ):
You can’t perform that action at this time.
0 commit comments