Skip to content

Commit 4d7442f

Browse files
1 parent 45d61e2 commit 4d7442f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

‎google/auth/_default.py‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def _warn_about_problematic_credentials(credentials):
107107
if credentials.client_id == _cloud_sdk.CLOUD_SDK_CLIENT_ID:
108108
warnings.warn(_CLOUD_SDK_CREDENTIALS_WARNING)
109109

110+
110111
def _warn_about_generic_load_method(method_name): # pragma: NO COVER
111112
"""Warns that a generic load method is being used.
112113
@@ -118,11 +119,7 @@ def _warn_about_generic_load_method(method_name): # pragma: NO COVER
118119
method_name (str): The name of the method being used.
119120
"""
120121

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

127124

128125
def load_credentials_from_file(

0 commit comments

Comments
 (0)