diff options
author | Petr Viktorin <pviktori@redhat.com> | 2015-02-02 10:39:36 +0100 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2015-02-02 10:39:36 +0100 |
commit | 5b2ca650b21d60a481e861ce998d2a0bbd2fb64d (patch) | |
tree | 1e279847bd724abdc2df428034e135566d9a3873 /setup/dicttreeview.py | |
parent | 1bc034eaa38e56c9b9fc0151b9d56cfe3912af29 (diff) | |
download | ibus-libpinyin-5b2ca650b21d60a481e861ce998d2a0bbd2fb64d.tar.gz ibus-libpinyin-5b2ca650b21d60a481e861ce998d2a0bbd2fb64d.tar.xz ibus-libpinyin-5b2ca650b21d60a481e861ce998d2a0bbd2fb64d.zip |
Enable running setup scripts with Python 3
The default uses 'python'.
To use 'python3', ./configure --with-python=python3
Diffstat (limited to 'setup/dicttreeview.py')
-rw-r--r-- | setup/dicttreeview.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setup/dicttreeview.py b/setup/dicttreeview.py index 490f2a5..670a34c 100644 --- a/setup/dicttreeview.py +++ b/setup/dicttreeview.py @@ -172,13 +172,13 @@ class DictionaryTreeView(Gtk.TreeView): if prop.name == 'dictionaries': return self.get_dictionaries() else: - raise AttributeError, 'unknown property %s' % prop.name + raise AttributeError('unknown property %s' % prop.name) def do_set_property(self, prop, value): if prop.name == "dictionaries": self.set_dictionaries(value) else: - raise AttributeError, 'unknown property %s' % prop.name + raise AttributeError('unknown property %s' % prop.name) GObject.type_register(DictionaryTreeView) |