Shorten line length

This commit is contained in:
Jace Browning 2019-01-05 20:10:51 -05:00
parent 0a38ac801d
commit fffc647811
2 changed files with 7 additions and 6 deletions

View file

@ -204,7 +204,7 @@ class _Network:
# Load session_key and username from authentication token if provided
if token and not self.session_key:
sk_gen = SessionKeyGenerator(self)
self.session_key, self.username = sk_gen.get_web_auth_session_key_and_username(
self.session_key, self.username = sk_gen.get_web_auth_session_key_username(
url=None, token=token
)
@ -1045,9 +1045,9 @@ class SessionKeyGenerator:
return url
def get_web_auth_session_key_and_username(self, url, token=""):
def get_web_auth_session_key_username(self, url, token=""):
"""
Retrieves the session key and username of a web authorization process by its URL.
Retrieves the session key/username of a web authorization process by its URL.
"""
if url in self.web_auth_tokens.keys():
@ -1072,7 +1072,7 @@ class SessionKeyGenerator:
"""
Retrieves the session key of a web authorization process by its URL.
"""
session_key, _username = self.get_web_auth_session_key_and_username(url, token)
session_key, _username = self.get_web_auth_session_key_username(url, token)
return session_key
def get_session_key(self, username, password_hash):

View file

@ -2,10 +2,11 @@
universal = 1
[flake8]
ignore = E501,W503
ignore = W503
max_line_length = 88
[metadata]
license_file = COPYING
[pycodestyle]
ignore = E501
max_line_length = 88