From fffc64781153d67412b1c658784448a0d2ae3ee7 Mon Sep 17 00:00:00 2001 From: Jace Browning Date: Sat, 5 Jan 2019 20:10:51 -0500 Subject: [PATCH] Shorten line length --- pylast/__init__.py | 8 ++++---- setup.cfg | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pylast/__init__.py b/pylast/__init__.py index 403f7ba..5b839c9 100644 --- a/pylast/__init__.py +++ b/pylast/__init__.py @@ -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): diff --git a/setup.cfg b/setup.cfg index 257ddaf..0fa133b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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