Fix a reference to sys.version_info.major that broke Python 2.6.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 30 Nov 2010 10:09:53 +0000 (10:09 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 30 Nov 2010 10:09:53 +0000 (10:09 +0000)
sst.py

diff --git a/sst.py b/sst.py
index 0ceee43cb96fc5a64510968da1eb7e9e8eced891..a5766646964608a12729b559b89f40a62fce50a1 100644 (file)
--- 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")