Skip to content

Commit 98b8e0b

Browse files
1 parent 7b002f2 commit 98b8e0b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

‎google/auth/_default.py‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
# The subject token type used for AWS external_account credentials.
9595
_AWS_SUBJECT_TOKEN_TYPE = "urn:ietf:params:aws:token-type:aws4_request"
9696

97+
9798
def _warn_about_problematic_credentials(credentials):
9899
"""Determines if the credentials are problematic.
99100
@@ -106,6 +107,7 @@ def _warn_about_problematic_credentials(credentials):
106107
if credentials.client_id == _cloud_sdk.CLOUD_SDK_CLIENT_ID:
107108
warnings.warn(_CLOUD_SDK_CREDENTIALS_WARNING)
108109

110+
109111
def _warn_about_generic_load_method(method_name): # pragma: NO COVER
110112
"""Warns that a generic load method is being used.
111113
@@ -117,11 +119,7 @@ def _warn_about_generic_load_method(method_name): # pragma: NO COVER
117119
method_name (str): The name of the method being used.
118120
"""
119121

120-
121-
warnings.warn(
122-
_GENERIC_LOAD_METHOD_WARNING.format(method_name),
123-
DeprecationWarning,
124-
)
122+
warnings.warn(_GENERIC_LOAD_METHOD_WARNING.format(method_name), DeprecationWarning)
125123

126124

127125
def load_credentials_from_file(

0 commit comments

Comments
 (0)