From 725b96c0aeec8169935f8e49472f872160822199 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Tue, 11 Feb 2014 15:02:58 -0800 Subject: [PATCH] Not a fan of pointless getters. --- paramiko/auth_handler.py | 3 --- paramiko/transport.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/paramiko/auth_handler.py b/paramiko/auth_handler.py index da551af..57f25fa 100644 --- a/paramiko/auth_handler.py +++ b/paramiko/auth_handler.py @@ -63,9 +63,6 @@ class AuthHandler (object): else: return self.username - def get_banner(self): - return self.banner - def auth_none(self, username, event): self.transport.lock.acquire() try: diff --git a/paramiko/transport.py b/paramiko/transport.py index 127635e..cc81ed7 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -1102,7 +1102,7 @@ class Transport (threading.Thread): """ if not self.active or (self.auth_handler is None): return None - return self.auth_handler.get_banner() + return self.auth_handler.banner def auth_none(self, username): """