From f5dbc111ef52b5dce7471fb59276f777a1fefdc2 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 30 Nov 2010 10:09:53 +0000 Subject: [PATCH] Fix a reference to sys.version_info.major that broke Python 2.6. --- sst.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 2.31.1