mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 09:13:53 +00:00
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:
parent
13109c1613
commit
4d1dbfe3ca
@ -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