File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -740,11 +740,11 @@ def get_auth(
740
740
"""
741
741
742
742
# If explicit username & password were provided, use them.
743
- if username is not None and password is not None :
743
+ if username and password :
744
744
return self .get_oauth_token (
745
745
username , password
746
746
)
747
- elif client_id is not None and client_secret is not None :
747
+ if client_id is not None and client_secret is not None :
748
748
return self .get_oauth_token (
749
749
client_id = client_id ,
750
750
client_secret = client_secret
@@ -782,7 +782,7 @@ def get_oauth_token(
782
782
client_secret = None ,
783
783
):
784
784
"""Request an OAuth2 access token using either a username & password,
785
- client_id and client_secret or an auth token.
785
+ client_id and client_secret, or an auth token.
786
786
787
787
Parameters
788
788
----------
You can’t perform that action at this time.
0 commit comments