summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobey Pointer <robey@master-shake.local>2006-02-08 19:01:12 -0800
committerRobey Pointer <robey@master-shake.local>2006-02-08 19:01:12 -0800
commit27ccd56af7c18c6cb3a796d05e3cab6d069afca0 (patch)
treeeb2302fce2c8c6cac539508fe77a1c8929841e77
parent619192814d18dffbcde159b5431db4e044fdb8ba (diff)
[project @ robey@master-shake.local-20060209030112-ab9669fa6d1d3d26]
avoid really obvious/brainfart reference loop. found by andrew bennetts
-rw-r--r--paramiko/auth_handler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/paramiko/auth_handler.py b/paramiko/auth_handler.py
index cd4904cf..59ac1b0c 100644
--- a/paramiko/auth_handler.py
+++ b/paramiko/auth_handler.py
@@ -21,6 +21,7 @@ L{AuthHandler}
"""
import threading
+import weakref
# this helps freezing utils
import encodings.utf_8
@@ -38,7 +39,7 @@ class AuthHandler (object):
"""
def __init__(self, transport):
- self.transport = transport
+ self.transport = weakref.proxy(transport)
self.username = None
self.authenticated = False
self.auth_event = None