diff options
author | Peng Wu <alexepico@gmail.com> | 2015-03-26 12:57:25 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2015-03-26 12:57:25 +0800 |
commit | 958b9239d02e56c06a603bd4304ae0321b2a512a (patch) | |
tree | 9fdb01ce07634f9908a6cb646b6ee5242732b560 /setup/main.py | |
parent | 772d9878d25dfec2bbc4205c6756d9d877d244b9 (diff) | |
download | ibus-libzhuyin-958b9239d02e56c06a603bd4304ae0321b2a512a.tar.gz ibus-libzhuyin-958b9239d02e56c06a603bd4304ae0321b2a512a.tar.xz ibus-libzhuyin-958b9239d02e56c06a603bd4304ae0321b2a512a.zip |
migrate setup dialog to python 3.x
Diffstat (limited to 'setup/main.py')
-rw-r--r-- | setup/main.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/setup/main.py b/setup/main.py index b2840dc..5631570 100644 --- a/setup/main.py +++ b/setup/main.py @@ -18,6 +18,8 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +from __future__ import print_function + import gettext import locale @@ -298,7 +300,7 @@ class PreferencesWindow: elif isinstance(val, str): var = GLib.Variant.new_string(val) else: - print >> sys.stderr, "val(%s) is not in support type." % repr(val) + print("val(%s) is not in support type." % repr(val), file=sys.stderr) return self.__values[name] = val |