summaryrefslogtreecommitdiff
path: root/engine/python3/thumb.py
diff options
context:
space:
mode:
authorfujiwarat <takao.fujiwara1@gmail.com>2015-09-17 15:25:21 +0900
committerfujiwarat <takao.fujiwara1@gmail.com>2015-09-17 15:25:21 +0900
commita76d93dd1a787795ffc07ded6af3b70a39a11756 (patch)
treeadb46409d3c5a947e079f576fca4fdf468efe1d9 /engine/python3/thumb.py
parentb4a93404d83a4d051f4804bd97655c021c7ebc7a (diff)
downloadibus-anthy-a76d93dd1a787795ffc07ded6af3b70a39a11756.tar.gz
Fixed bytes to str in thumb.py for python3
GLIb.spawn_sync() returns type bytes and the type is different between python2 and python3.
Diffstat (limited to 'engine/python3/thumb.py')
-rw-r--r--engine/python3/thumb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/python3/thumb.py b/engine/python3/thumb.py
index 7fb97a8..8ae785a 100644
--- a/engine/python3/thumb.py
+++ b/engine/python3/thumb.py
@@ -435,9 +435,9 @@ class ThumbShiftKeyboard:
GLib.SpawnFlags.SEARCH_PATH_FROM_ENVP,
None, None)
if not ret:
- print(std_error, file=sys.stderr)
+ print(std_error.decode('utf-8'), file=sys.stderr)
return layout
- for line in std_out.split('\n'):
+ for line in std_out.decode('utf-8').split('\n'):
if line.startswith('layout:'):
data = line.split()[1]
if data == 'jp':