summaryrefslogtreecommitdiff
path: root/paramiko/auth_handler.py
diff options
context:
space:
mode:
authorScott Maxwell <scott@codecobblers.com>2013-11-19 08:56:53 -0800
committerScott Maxwell <scott@codecobblers.com>2013-11-19 08:56:53 -0800
commit2da5f1fb4565d1e6dc72672f640dac44b122d235 (patch)
tree341373c292485f1417933551cc5c425d17fbbd44 /paramiko/auth_handler.py
parent7471515fffd2315f7330c5e1dd42f353982ded6c (diff)
downloadparamiko-2da5f1fb4565d1e6dc72672f640dac44b122d235.tar.gz
Use 'with' for opening most file and SFTPFIle objects
Diffstat (limited to 'paramiko/auth_handler.py')
-rw-r--r--paramiko/auth_handler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/auth_handler.py b/paramiko/auth_handler.py
index 3e389da8..5046cac5 100644
--- a/paramiko/auth_handler.py
+++ b/paramiko/auth_handler.py
@@ -93,7 +93,7 @@ class AuthHandler (object):
self._request_auth()
finally:
self.transport.lock.release()
-
+
def auth_interactive(self, username, handler, event, submethods=''):
"""
response_list = handler(title, instructions, prompt_list)
@@ -108,7 +108,7 @@ class AuthHandler (object):
self._request_auth()
finally:
self.transport.lock.release()
-
+
def abort(self):
if self.auth_event is not None:
self.auth_event.set()