From 4d1dbfe3ca40074465b1c7b2093d7093240933c7 Mon Sep 17 00:00:00 2001 From: Ritiek Malhotra Date: Mon, 2 Mar 2020 17:32:17 +0530 Subject: [PATCH] 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() ``` --- spotipy/oauth2.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/spotipy/oauth2.py b/spotipy/oauth2.py index 563c10f..a49fba8 100644 --- a/spotipy/oauth2.py +++ b/spotipy/oauth2.py @@ -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"]