mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 20:12:42 +02:00
Add warnings about Python 3.5 deprecation in Certbot (#8154)
Fixes #8149 This PR adds warnings to warn about the incoming deprecation of Python 3.5 in Certbot. * Add warnings about Python 3.5 deprecation in Certbot * Update certbot/certbot/__init__.py Co-authored-by: Brad Warren <bmw@users.noreply.github.com> Co-authored-by: Brad Warren <bmw@users.noreply.github.com>
This commit is contained in:
co-authored by
Brad Warren
parent
74b0340a13
commit
270b5535e2
@@ -20,3 +20,11 @@ for mod in list(sys.modules):
|
||||
# preserved (acme.jose.* is josepy.*)
|
||||
if mod == 'josepy' or mod.startswith('josepy.'):
|
||||
sys.modules['acme.' + mod.replace('josepy', 'jose', 1)] = sys.modules[mod]
|
||||
|
||||
|
||||
if sys.version_info[:2] == (3, 5):
|
||||
warnings.warn(
|
||||
"Python 3.5 support will be dropped in the next release of "
|
||||
"acme. Please upgrade your Python version.",
|
||||
PendingDeprecationWarning,
|
||||
) # pragma: no cover
|
||||
|
||||
Reference in New Issue
Block a user