Add link to FAQ items on how to upgrade to Python 3.

This commit is contained in:
Valentin Lorentz 2016-02-22 20:18:37 +01:00
parent 8c3946d31c
commit 880addf256
2 changed files with 11 additions and 7 deletions

View File

@ -236,11 +236,14 @@ setup(
)
if sys.version_info < (2, 7, 9):
sys.stderr.write('+------------------------------------------------+\n')
sys.stderr.write('| Running Limnoria on Python versions older than |\n')
sys.stderr.write('| 2.7.9 is deprecated. |\n')
sys.stderr.write('| Please consider upgrading to Python 3.x. |\n')
sys.stderr.write('+------------------------------------------------+\n')
if sys.version_info < (2, 7, 9) or True:
sys.stderr.write('+-----------------------------------------------------+\n')
sys.stderr.write('| Running Limnoria on Python versions older than |\n')
sys.stderr.write('| 2.7.9 is deprecated. |\n')
sys.stderr.write('| Please consider upgrading to Python 3.4 or greater. |\n')
sys.stderr.write('+-----------------------------------------------------+\n')
sys.stderr.write('\n')
sys.stderr.write('See <http://doc.supybot.aperio.fr/en/latest/use/faq.html#how-to-make-limnoria-use-python-3-instead-of-python-2>\n')
sys.stderr.write('\n')
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:

View File

@ -171,6 +171,7 @@ else:
logger.critical('This Python version does not support SSL/TLS '
'certification authority verification, which makes your '
'connection vulnerable to man-in-the-middle attacks.'
'You should consider upgrading to Python 3.4 or newer.')
'You should consider upgrading to Python 3.4 or newer. '
'See <http://doc.supybot.aperio.fr/en/latest/use/faq.html#how-to-make-limnoria-use-python-3-instead-of-python-2>')
return conn
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79: