From be52e1793ae4b451e44a3967959acc6c07c53023 Mon Sep 17 00:00:00 2001 From: Hugo Date: Fri, 27 Jul 2018 16:02:00 +0300 Subject: [PATCH] Black fix --- pylast/__init__.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pylast/__init__.py b/pylast/__init__.py index 3061d3d..b2ffa37 100644 --- a/pylast/__init__.py +++ b/pylast/__init__.py @@ -44,10 +44,12 @@ __email__ = "amr.hassan@gmail.com" __version__ = version.__version__ if sys.version_info < (3,): - warnings.warn('You are using pylast with Python 2. ' - 'Pylast will soon be Python 3 only. ' - 'More info: https://github.com/pylast/pylast/issues/265', - UserWarning) + warnings.warn( + "You are using pylast with Python 2. " + "Pylast will soon be Python 3 only. " + "More info: https://github.com/pylast/pylast/issues/265", + UserWarning, + ) if sys.version_info.major == 2: import htmlentitydefs @@ -1026,9 +1028,7 @@ class SessionKeyGenerator(object): token = self._get_web_auth_token() url = "{homepage}/api/auth/?api_key={api}&token={token}".format( - homepage=self.network.homepage, - api=self.network.api_key, - token=token, + homepage=self.network.homepage, api=self.network.api_key, token=token ) self.web_auth_tokens[url] = token