diff options
author | Rob Austein <sra@hactrn.net> | 2010-02-17 09:49:24 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2010-02-17 09:49:24 +0000 |
commit | c07e74d5c48e25b2d3f8442a7949fe39907f8bb3 (patch) | |
tree | d2a1825a466b79f6e138cca20186500128979370 | |
parent | 3c73588e50b92a77af22348f11c2019540d620f5 (diff) |
Track Python 2.6
svn path=/rtr-origin/rtr-origin.py; revision=2977
-rw-r--r-- | rtr-origin/rtr-origin.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rtr-origin/rtr-origin.py b/rtr-origin/rtr-origin.py index 8e0a54f4..06299598 100644 --- a/rtr-origin/rtr-origin.py +++ b/rtr-origin/rtr-origin.py @@ -669,7 +669,7 @@ class pdu_channel(asynchat.async_chat): """ def __init__(self, conn = None): - asynchat.async_chat.__init__(self, conn = conn) + asynchat.async_chat.__init__(self, conn) self.reader = read_buffer() def start_new_pdu(self): @@ -877,7 +877,8 @@ class client_channel(pdu_channel): well, child will have exited already before this method is called, but we may need to whack it with a stick if something breaks. """ - self.timer.cancel() + if self.timer is not None: + self.timer.cancel() if self.proc is not None and self.proc.returncode is None: try: os.kill(self.proc.pid, self.killsig) |