Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove broken link in Python37DeprecationWarning #1430

Merged
merged 3 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions google/auth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
class Python37DeprecationWarning(DeprecationWarning): # pragma: NO COVER
"""
Deprecation warning raised when Python 3.7 runtime is detected.
Python 3.7 support will be dropped after January 1, 2024. See
https://cloud.google.com/python/docs/python37-sunset/ for more information.
Python 3.7 support will be dropped after January 1, 2024.
"""

pass
Expand All @@ -46,8 +45,7 @@ class Python37DeprecationWarning(DeprecationWarning): # pragma: NO COVER
if sys.version_info.major == 3 and sys.version_info.minor == 7: # pragma: NO COVER
message = (
"After January 1, 2024, new releases of this library will drop support "
"for Python 3.7. More details about Python 3.7 support "
"can be found at https://cloud.google.com/python/docs/python37-sunset/"
"for Python 3.7."
)
warnings.warn(message, Python37DeprecationWarning)

Expand Down
6 changes: 2 additions & 4 deletions google/oauth2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
class Python37DeprecationWarning(DeprecationWarning): # pragma: NO COVER
"""
Deprecation warning raised when Python 3.7 runtime is detected.
Python 3.7 support will be dropped after January 1, 2024. See
https://cloud.google.com/python/docs/python37-sunset/ for more information.
Python 3.7 support will be dropped after January 1, 2024.
"""

pass
Expand All @@ -32,7 +31,6 @@ class Python37DeprecationWarning(DeprecationWarning): # pragma: NO COVER
if sys.version_info.major == 3 and sys.version_info.minor == 7: # pragma: NO COVER
message = (
"After January 1, 2024, new releases of this library will drop support "
"for Python 3.7. More details about Python 3.7 support "
"can be found at https://cloud.google.com/python/docs/python37-sunset/"
"for Python 3.7."
)
warnings.warn(message, Python37DeprecationWarning)