Skip to content

Commit ed3adc2

Browse files
committed
Compatibility fix: use isAlive instead of is_alive for python < 2.6
1 parent f5c51dc commit ed3adc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymongo/mongo_replica_set_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def schedule_refresh(self):
329329
"""Override Monitor's schedule_refresh method
330330
raise exception as warning if thread is dead
331331
"""
332-
if not self.is_alive():
332+
if not self.isAlive():
333333
raise Exception("Monitor thread died unexpectedly, used with fork?")
334334
super(MonitorThread, self).schedule_refresh()
335335

0 commit comments

Comments
 (0)