mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-09 02:54:13 +01:00
Add warning in setup.py about Python 2.6.
This commit is contained in:
parent
fed4258040
commit
3047ea7acb
6
setup.py
6
setup.py
@ -228,5 +228,11 @@ setup(
|
|||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if sys.version_info < (2, 7, 0):
|
||||||
|
sys.stderr.write('+-----------------------------------------------+\n')
|
||||||
|
sys.stderr.write('| Running Limnoria on Python 2.6 is deprecated. |\n')
|
||||||
|
sys.stderr.write('| Please consider upgrading to Python 3.x (or |\n')
|
||||||
|
sys.stderr.write('| at least 2.7) |\n')
|
||||||
|
sys.stderr.write('+-----------------------------------------------+\n')
|
||||||
|
|
||||||
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
||||||
|
@ -294,7 +294,10 @@ def perlVariableSubstitute(vars, text):
|
|||||||
if callable(x):
|
if callable(x):
|
||||||
return x()
|
return x()
|
||||||
else:
|
else:
|
||||||
return str(x)
|
try:
|
||||||
|
return str(x)
|
||||||
|
except UnicodeEncodeError: # Python 2
|
||||||
|
return str(x).encode('utf8')
|
||||||
except KeyError:
|
except KeyError:
|
||||||
if braced:
|
if braced:
|
||||||
return '${%s}' % braced
|
return '${%s}' % braced
|
||||||
|
Loading…
Reference in New Issue
Block a user