Skip to content

Commit 317bb2a

Browse files
committed
fix python2 compatibility
1 parent 6c8e052 commit 317bb2a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rtrlib/util.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ def inner_callback(pfx_record, data):
114114
self.thread = StoppableThread(
115115
target=function,
116116
args=new_args,
117-
daemon=True,
118117
)
118+
self.thread.daemon = True
119119

120120
self.thread.start()
121121

@@ -140,3 +140,6 @@ def __next__(self,):
140140
else:
141141
LOG.debug('Queue empty stopping iteration')
142142
raise StopIteration()
143+
144+
def next(self,):
145+
return self.__next__()

0 commit comments

Comments
 (0)