From b20fa2906c177d9ef60047c3f459100ddc3239ab Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Tue, 13 Jan 2026 14:30:46 +0200 Subject: [PATCH] chore: dedent deprecation warning message --- google/auth/__init__.py | 12 ++++++------ google/oauth2/__init__.py | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/google/auth/__init__.py b/google/auth/__init__.py index 2217558a4..c6b75f9e2 100644 --- a/google/auth/__init__.py +++ b/google/auth/__init__.py @@ -42,12 +42,12 @@ class Python37DeprecationWarning(DeprecationWarning): # pragma: NO COVER # Raise warnings for deprecated versions -eol_message = """ - You are using a Python version {} past its end of life. Google will update - google-auth with critical bug fixes on a best-effort basis, but not - with any other fixes or features. Please upgrade your Python version, - and then update google-auth. - """ +eol_message = ( + "You are using a Python version {} past its end of life. Google will update " + "google-auth with critical bug fixes on a best-effort basis, but not " + "with any other fixes or features. Please upgrade your Python version, " + "and then update google-auth." +) if sys.version_info.major == 3 and sys.version_info.minor == 8: # pragma: NO COVER warnings.warn(eol_message.format("3.8"), FutureWarning) elif sys.version_info.major == 3 and sys.version_info.minor == 9: # pragma: NO COVER diff --git a/google/oauth2/__init__.py b/google/oauth2/__init__.py index 18b8ada67..56c2e629a 100644 --- a/google/oauth2/__init__.py +++ b/google/oauth2/__init__.py @@ -28,12 +28,12 @@ class Python37DeprecationWarning(DeprecationWarning): # pragma: NO COVER # Raise warnings for deprecated versions -eol_message = """ - You are using a Python version {} past its end of life. Google will update - google-auth with critical bug fixes on a best-effort basis, but not - with any other fixes or features. Please upgrade your Python version, - and then update google-auth. - """ +eol_message = ( + "You are using a Python version {} past its end of life. Google will update " + "google-auth with critical bug fixes on a best-effort basis, but not " + "with any other fixes or features. Please upgrade your Python version, " + "and then update google-auth." +) if sys.version_info.major == 3 and sys.version_info.minor == 8: # pragma: NO COVER warnings.warn(eol_message.format("3.8"), FutureWarning) elif sys.version_info.major == 3 and sys.version_info.minor == 9: # pragma: NO COVER