From 27ccd56af7c18c6cb3a796d05e3cab6d069afca0 Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Wed, 8 Feb 2006 19:01:12 -0800 Subject: [PATCH] [project @ robey@master-shake.local-20060209030112-ab9669fa6d1d3d26] avoid really obvious/brainfart reference loop. found by andrew bennetts --- paramiko/auth_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paramiko/auth_handler.py b/paramiko/auth_handler.py index cd4904c..59ac1b0 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