Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
arithmetic1728 committed Nov 30, 2023
1 parent 9b6dbd4 commit ade1619
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion google/oauth2/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def __init__(
self.refresh_handler = refresh_handler
self._enable_reauth_refresh = enable_reauth_refresh
self._trust_boundary = trust_boundary
self._universe_domain = universe_domain
self._universe_domain = universe_domain or _DEFAULT_UNIVERSE_DOMAIN

def __getstate__(self):
"""A __getstate__ method must exist for the __setstate__ to be called
Expand Down
5 changes: 1 addition & 4 deletions google/oauth2/service_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,7 @@ def __init__(
self._quota_project_id = quota_project_id
self._token_uri = token_uri
self._always_use_jwt_access = always_use_jwt_access
if not universe_domain:
self._universe_domain = _DEFAULT_UNIVERSE_DOMAIN
else:
self._universe_domain = universe_domain
self._universe_domain = universe_domain or _DEFAULT_UNIVERSE_DOMAIN

if universe_domain != _DEFAULT_UNIVERSE_DOMAIN:
self._always_use_jwt_access = True
Expand Down

0 comments on commit ade1619

Please sign in to comment.