File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,9 @@ def discard(self, element):
136
136
except KeyError :
137
137
pass
138
138
139
+ def next (self ):
140
+ return self .__next__ ()
141
+
139
142
def remove (self , element ):
140
143
try :
141
144
del self ._elements [element ]
Original file line number Diff line number Diff line change 30
30
from collections import deque
31
31
import re
32
32
from threading import Lock
33
- from time import monotonic
33
+ try :
34
+ from time import monotonic as clock
35
+ except ImportError :
36
+ from time import clock
34
37
from warnings import warn
35
38
36
39
from neo4j .util import RoundRobinSet
@@ -204,7 +207,7 @@ class ConnectionRouter(object):
204
207
cluster that supports routing.
205
208
"""
206
209
207
- timer = monotonic
210
+ timer = clock
208
211
209
212
def __init__ (self , pool , * routers ):
210
213
self .pool = pool
You can’t perform that action at this time.
0 commit comments