Skip to content

Commit

Permalink
fix: remove broken link in Python37DeprecationWarning (#1430)
Browse files Browse the repository at this point in the history
Co-authored-by: arithmetic1728 <58957152+arithmetic1728@users.noreply.github.com>
  • Loading branch information
parthea and arithmetic1728 authored Dec 4, 2023
1 parent f22f767 commit e2db602
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
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)

0 comments on commit e2db602

Please sign in to comment.