print warnings for 3.3 users (#5283)

fix errors
This commit is contained in:
Noah Swartz 2017-12-08 12:45:04 -08:00 committed by Brad Warren
parent 5d0888809f
commit 0046428382
2 changed files with 12 additions and 0 deletions

View file

@ -10,3 +10,12 @@ supported version: `draft-ietf-acme-01`_.
https://github.com/ietf-wg-acme/acme/tree/draft-ietf-acme-acme-01
"""
import sys
import warnings
if sys.version_info[:2] == (3, 3):
warnings.warn(
"Python 3.3 support will be dropped in the next release of "
"acme. Please upgrade your Python version.",
PendingDeprecationWarning,
) #pragma: no cover

View file

@ -1215,6 +1215,9 @@ def main(cli_args=sys.argv[1:]):
# Let plugins_cmd be run as un-privileged user.
if config.func != plugins_cmd:
raise
if sys.version_info[:2] == (3, 3):
logger.warning("Python 3.3 support will be dropped in the next release "
"of Certbot - please upgrade your Python version.")
set_displayer(config)