mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 09:13:53 +00:00
Merge pull request #447 from plamere/remove-unnecessary-print-statements
Remove unnecessary print statements
This commit is contained in:
commit
3a156a1f92
@ -105,7 +105,6 @@ class SpotifyClientCredentials(SpotifyAuthBase):
|
|||||||
as a string.
|
as a string.
|
||||||
"""
|
"""
|
||||||
if as_dict:
|
if as_dict:
|
||||||
print("")
|
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
"You're using 'as_dict = True'."
|
"You're using 'as_dict = True'."
|
||||||
"get_access_token will return the token string directly in future "
|
"get_access_token will return the token string directly in future "
|
||||||
@ -114,7 +113,6 @@ class SpotifyClientCredentials(SpotifyAuthBase):
|
|||||||
DeprecationWarning,
|
DeprecationWarning,
|
||||||
stacklevel=2,
|
stacklevel=2,
|
||||||
)
|
)
|
||||||
print("")
|
|
||||||
|
|
||||||
if self.token_info and not self.is_token_expired(self.token_info):
|
if self.token_info and not self.is_token_expired(self.token_info):
|
||||||
return self.token_info if as_dict else self.token_info["access_token"]
|
return self.token_info if as_dict else self.token_info["access_token"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user