X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=sst.py;h=a5766646964608a12729b559b89f40a62fce50a1;hp=0ceee43cb96fc5a64510968da1eb7e9e8eced891;hb=f5dbc111ef52b5dce7471fb59276f777a1fefdc2;hpb=70b24716c08b339efe521907e18822bba3afdb30 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")