From: Eric S. Raymond Date: Tue, 30 Nov 2010 10:09:53 +0000 (+0000) Subject: Fix a reference to sys.version_info.major that broke Python 2.6. X-Git-Tag: 2.0~14 X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=commitdiff_plain;h=f5dbc111ef52b5dce7471fb59276f777a1fefdc2 Fix a reference to sys.version_info.major that broke Python 2.6. --- diff --git a/sst.py b/sst.py index 0ceee43..a576664 100644 --- a/sst.py +++ b/sst.py @@ -3066,7 +3066,7 @@ def iostart(): "for some recent versions of python2, the following enables UTF8" "for the older ones we probably need to set C locale, and the python3" "has no problems at all" - if sys.version_info.major < 3: + if sys.version_info[0] < 3: import locale locale.setlocale(locale.LC_ALL, "") gettext.bindtextdomain("sst", "/usr/local/share/locale")