Not a fan of pointless getters.
This commit is contained in:
parent
3e87f4aa27
commit
725b96c0ae
|
@ -63,9 +63,6 @@ class AuthHandler (object):
|
||||||
else:
|
else:
|
||||||
return self.username
|
return self.username
|
||||||
|
|
||||||
def get_banner(self):
|
|
||||||
return self.banner
|
|
||||||
|
|
||||||
def auth_none(self, username, event):
|
def auth_none(self, username, event):
|
||||||
self.transport.lock.acquire()
|
self.transport.lock.acquire()
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -1102,7 +1102,7 @@ class Transport (threading.Thread):
|
||||||
"""
|
"""
|
||||||
if not self.active or (self.auth_handler is None):
|
if not self.active or (self.auth_handler is None):
|
||||||
return None
|
return None
|
||||||
return self.auth_handler.get_banner()
|
return self.auth_handler.banner
|
||||||
|
|
||||||
def auth_none(self, username):
|
def auth_none(self, username):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue