Skip to content

Commit

Permalink
Fixed bytes to str in thumb.py for python3
Browse files Browse the repository at this point in the history
GLIb.spawn_sync() returns type bytes and the type is different
between python2 and python3.
  • Loading branch information
fujiwarat committed Sep 17, 2015
1 parent b4a9340 commit a76d93d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/python3/thumb.py
Expand Up @@ -435,9 +435,9 @@ def __get_xkb_layout(self):
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':
Expand Down

0 comments on commit a76d93d

Please sign in to comment.