Black fix
This commit is contained in:
parent
c1e70f798c
commit
be52e1793a
|
@ -44,10 +44,12 @@ __email__ = "amr.hassan@gmail.com"
|
||||||
__version__ = version.__version__
|
__version__ = version.__version__
|
||||||
|
|
||||||
if sys.version_info < (3,):
|
if sys.version_info < (3,):
|
||||||
warnings.warn('You are using pylast with Python 2. '
|
warnings.warn(
|
||||||
'Pylast will soon be Python 3 only. '
|
"You are using pylast with Python 2. "
|
||||||
'More info: https://github.com/pylast/pylast/issues/265',
|
"Pylast will soon be Python 3 only. "
|
||||||
UserWarning)
|
"More info: https://github.com/pylast/pylast/issues/265",
|
||||||
|
UserWarning,
|
||||||
|
)
|
||||||
|
|
||||||
if sys.version_info.major == 2:
|
if sys.version_info.major == 2:
|
||||||
import htmlentitydefs
|
import htmlentitydefs
|
||||||
|
@ -1026,9 +1028,7 @@ class SessionKeyGenerator(object):
|
||||||
token = self._get_web_auth_token()
|
token = self._get_web_auth_token()
|
||||||
|
|
||||||
url = "{homepage}/api/auth/?api_key={api}&token={token}".format(
|
url = "{homepage}/api/auth/?api_key={api}&token={token}".format(
|
||||||
homepage=self.network.homepage,
|
homepage=self.network.homepage, api=self.network.api_key, token=token
|
||||||
api=self.network.api_key,
|
|
||||||
token=token,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
self.web_auth_tokens[url] = token
|
self.web_auth_tokens[url] = token
|
||||||
|
|
Loading…
Reference in a new issue