Skip to content

Commit 6777b98

Browse files
committed
Merge pull request apache#466 from jonmcevoy/master
Fix Python3 bug with Timers and heaps
2 parents 2f359cd + 15f9155 commit 6777b98

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cassandra/connection.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,6 +1020,9 @@ def __init__(self, timeout, callback):
10201020
if timeout < 0:
10211021
self.callback()
10221022

1023+
def __lt__(self, other):
1024+
return self.end < other.end
1025+
10231026
def cancel(self):
10241027
self.canceled = True
10251028

0 commit comments

Comments
 (0)