Remove unnecessary print statements

which show up when fetching access token using:

```python
credentials = oauth2.SpotifyClientCredentials(
    client_id=client_id,
   client_secret=client_secret,
)
token = credentials.get_access_token()
```
This commit is contained in:
Ritiek Malhotra authored and GitHub committed 2020-03-02 17:32:17 +05:30
1 parent 13109c1613
commit 4d1dbfe3ca
1 file changed
-2
-2
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"]