File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 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+
9798def _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+
109111def _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
127125def load_credentials_from_file (
You can’t perform that action at this time.
0 commit comments