From 5c124cb1362f08296802f8d4856eaa18c0b35b00 Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Thu, 11 Apr 2013 16:27:49 -0700 Subject: [PATCH] un-break Python 2.5 compatibility by using isAlive() instead of is_alive() Python's documentation has a bug[1], in that it doesn't correctly annotate is_alive as being a function introduced in Python 2.6. [1] http://bugs.python.org/issue15126 Signed-off-by: Steven Noonan --- paramiko/transport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paramiko/transport.py b/paramiko/transport.py index 0197ced..fd63732 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -1389,7 +1389,7 @@ class Transport (threading.Thread): def stop_thread(self): self.active = False self.packetizer.close() - while self.is_alive(): + while self.isAlive(): self.join(10)