we require python2.6 now

This commit is contained in:
Damien Elmes 2012-04-28 17:47:41 +09:00
parent 461e240d53
commit 581830840c

View file

@ -7,8 +7,8 @@ import sys as _sys, httplib2 as _httplib2, \
if _sys.version_info[0] > 2: if _sys.version_info[0] > 2:
raise Exception("Anki should be run with Python 2") raise Exception("Anki should be run with Python 2")
elif _sys.version_info[1] < 5: elif _sys.version_info[1] < 6:
raise Exception("Anki requires Python 2.5+") raise Exception("Anki requires Python 2.6+")
elif _sys.getfilesystemencoding().lower() in ("ascii", "ansi_x3.4-1968"): elif _sys.getfilesystemencoding().lower() in ("ascii", "ansi_x3.4-1968"):
raise Exception("Anki requires a UTF-8 locale.") raise Exception("Anki requires a UTF-8 locale.")
elif _httplib2.__version__ < "0.7.0": elif _httplib2.__version__ < "0.7.0":