mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 09:13:53 +00:00
pep8
This commit is contained in:
parent
d256489491
commit
63c42b9854
@ -444,10 +444,15 @@ class SpotifyOAuth(SpotifyAuthBase):
|
|||||||
redirect_host, redirect_port = get_host_port(redirect_info.netloc)
|
redirect_host, redirect_port = get_host_port(redirect_info.netloc)
|
||||||
|
|
||||||
if redirect_host == 'localhost':
|
if redirect_host == 'localhost':
|
||||||
logger.warning("Using 'localhost' as a redirect URI is being deprecated. Use a loopback IP address such as 127.0.0.1 to ensure your app remains functional.")
|
logger.warning(
|
||||||
|
"Using 'localhost' as a redirect URI is being deprecated. "
|
||||||
|
"Use a loopback IP address such as 127.0.0.1 "
|
||||||
|
"to ensure your app remains functional.")
|
||||||
|
|
||||||
if redirect_info.scheme == "http" and not redirect_host in ("127.0.0.1", "localhost"):
|
if redirect_info.scheme == "http" and redirect_host not in ("127.0.0.1", "localhost"):
|
||||||
logger.warning("Redirect URIs using HTTP are being deprecated. To ensure your app remains functional, use HTTPS instead.")
|
logger.warning(
|
||||||
|
"Redirect URIs using HTTP are being deprecated. "
|
||||||
|
"To ensure your app remains functional, use HTTPS instead.")
|
||||||
|
|
||||||
if open_browser is None:
|
if open_browser is None:
|
||||||
open_browser = self.open_browser
|
open_browser = self.open_browser
|
||||||
@ -750,10 +755,15 @@ class SpotifyPKCE(SpotifyAuthBase):
|
|||||||
open_browser = self.open_browser
|
open_browser = self.open_browser
|
||||||
|
|
||||||
if redirect_host == 'localhost':
|
if redirect_host == 'localhost':
|
||||||
logger.warning("Using 'localhost' as a redirect URI is being deprecated. Use a loopback IP address such as 127.0.0.1 to ensure your app remains functional.")
|
logger.warning(
|
||||||
|
"Using 'localhost' as a redirect URI is being deprecated. "
|
||||||
|
"Use a loopback IP address such as 127.0.0.1 "
|
||||||
|
"to ensure your app remains functional.")
|
||||||
|
|
||||||
if redirect_info.scheme == "http" and not redirect_host in ("127.0.0.1", "localhost"):
|
if redirect_info.scheme == "http" and not redirect_host not in ("127.0.0.1", "localhost"):
|
||||||
logger.warning("Redirect URIs using HTTP are being deprecated. To ensure your app remains functional, use HTTPS instead.")
|
logger.warning(
|
||||||
|
"Redirect URIs using HTTP are being deprecated. "
|
||||||
|
"To ensure your app remains functional, use HTTPS instead.")
|
||||||
|
|
||||||
if (
|
if (
|
||||||
open_browser
|
open_browser
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user