Merge pull request #447 from plamere/remove-unnecessary-print-statements

Remove unnecessary print statements
This commit is contained in:
Ritiek Malhotra 2020-03-03 06:39:08 +05:30 committed by GitHub
commit 3a156a1f92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,7 +105,6 @@ class SpotifyClientCredentials(SpotifyAuthBase):
as a string.
"""
if as_dict:
print("")
warnings.warn(
"You're using 'as_dict = True'."
"get_access_token will return the token string directly in future "
@ -114,7 +113,6 @@ class SpotifyClientCredentials(SpotifyAuthBase):
DeprecationWarning,
stacklevel=2,
)
print("")
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"]