summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorfujiwarat <takao.fujiwara1@gmail.com>2015-04-22 12:45:48 +0900
committerfujiwarat <takao.fujiwara1@gmail.com>2015-04-22 12:45:48 +0900
commit5cd95abb49956d4014b0bdc5b5dba356d9d3767c (patch)
tree80fc8425cf2efa99d6e253c0fa8a2367dbf6a307 /engine
parent84da39df1b3580a04202c97e452e41586ce225bd (diff)
downloadibus-anthy-5cd95abb49956d4014b0bdc5b5dba356d9d3767c.tar.gz
Fixed to import sys (#1214092)
Diffstat (limited to 'engine')
-rw-r--r--engine/python2/factory.py5
-rw-r--r--engine/python2/thumb.py7
-rw-r--r--engine/python3/factory.py5
-rw-r--r--engine/python3/thumb.py7
4 files changed, 14 insertions, 10 deletions
diff --git a/engine/python2/factory.py b/engine/python2/factory.py
index d4aa075..42dee0a 100644
--- a/engine/python2/factory.py
+++ b/engine/python2/factory.py
@@ -4,8 +4,8 @@
# ibus-anthy - The Anthy engine for IBus
#
# Copyright (c) 2007-2008 Peng Huang <shawn.p.huang@gmail.com>
-# Copyright (c) 2010-2013 Takao Fujiwara <takao.fujiwara1@gmail.com>
-# Copyright (c) 2007-2013 Red Hat, Inc.
+# Copyright (c) 2010-2015 Takao Fujiwara <takao.fujiwara1@gmail.com>
+# Copyright (c) 2007-2015 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -22,6 +22,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
import os
+import sys
from gi.repository import IBus
diff --git a/engine/python2/thumb.py b/engine/python2/thumb.py
index 6a7e3d2..faa0f78 100644
--- a/engine/python2/thumb.py
+++ b/engine/python2/thumb.py
@@ -5,8 +5,8 @@
#
# Copyright (c) 2007-2008 Peng Huang <shawn.p.huang@gmail.com>
# Copyright (c) 2009 Hideaki ABE <abe.sendai@gmail.com>
-# Copyright (c) 2010-2013 Takao Fujiwara <takao.fujiwara1@gmail.com>
-# Copyright (c) 2007-2013 Red Hat, Inc.
+# Copyright (c) 2010-2015 Takao Fujiwara <takao.fujiwara1@gmail.com>
+# Copyright (c) 2007-2015 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -27,6 +27,8 @@ __all__ = (
'ThumbShiftSegment',
)
+import sys
+
from gi.repository import GLib
from gi.repository import IBus
@@ -411,7 +413,6 @@ class ThumbShiftKeyboard:
0, 1024, 0)[3]
layout_list = prop.split('\0')
except TypeError:
- import sys
print >> sys.stderr, \
'This problem is fixed in the latest gobject-introspection'
print >> sys.stderr, \
diff --git a/engine/python3/factory.py b/engine/python3/factory.py
index 8994793..e51faad 100644
--- a/engine/python3/factory.py
+++ b/engine/python3/factory.py
@@ -4,8 +4,8 @@
# ibus-anthy - The Anthy engine for IBus
#
# Copyright (c) 2007-2008 Peng Huang <shawn.p.huang@gmail.com>
-# Copyright (c) 2010-2014 Takao Fujiwara <takao.fujiwara1@gmail.com>
-# Copyright (c) 2007-2014 Red Hat, Inc.
+# Copyright (c) 2010-2015 Takao Fujiwara <takao.fujiwara1@gmail.com>
+# Copyright (c) 2007-2015 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -22,6 +22,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
import os
+import sys
from gi.repository import IBus
diff --git a/engine/python3/thumb.py b/engine/python3/thumb.py
index 93a3967..7fb97a8 100644
--- a/engine/python3/thumb.py
+++ b/engine/python3/thumb.py
@@ -5,8 +5,8 @@
#
# Copyright (c) 2007-2008 Peng Huang <shawn.p.huang@gmail.com>
# Copyright (c) 2009 Hideaki ABE <abe.sendai@gmail.com>
-# Copyright (c) 2010-2014 Takao Fujiwara <takao.fujiwara1@gmail.com>
-# Copyright (c) 2007-2014 Red Hat, Inc.
+# Copyright (c) 2010-2015 Takao Fujiwara <takao.fujiwara1@gmail.com>
+# Copyright (c) 2007-2015 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -27,6 +27,8 @@ __all__ = (
'ThumbShiftSegment',
)
+import sys
+
from gi.repository import GLib
from gi.repository import IBus
@@ -408,7 +410,6 @@ class ThumbShiftKeyboard:
0, 1024, 0)[3]
layout_list = prop.split('\0')
except TypeError:
- import sys
print >> sys.stderr, \
'This problem is fixed in the latest gobject-introspection'
print >> sys.stderr, \