[chrome-gnome-shell/feature/connector-update-check] connector: fixed Python 3 error



commit 7654bd326d29202f0c1b502b80803b220960f6c1
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Mon Dec 19 19:19:27 2016 +0400

    connector: fixed Python 3 error

 connector/chrome-gnome-shell.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/connector/chrome-gnome-shell.py b/connector/chrome-gnome-shell.py
index 6d1924c..df24ea0 100755
--- a/connector/chrome-gnome-shell.py
+++ b/connector/chrome-gnome-shell.py
@@ -287,7 +287,7 @@ class ChromeGNOMEShell(Gio.Application):
             stdout.write_chars(struct.pack(b'I', message_length), MESSAGE_LENGTH_SIZE)
 
             # Write the message itself.
-            stdout.write_chars(message, message_length)
+            stdout.write_chars(message.encode('utf-8'), message_length)
         except IOError as e:
             logError('IOError occured: %s' % e.strerror)
             sys.exit(1)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]