[chrome-gnome-shell] python2: do not decode message length to string



commit 2b7c5d11b3cdc53a57a3c9b3e41a6666b23313c5
Author: Yuri Konotopov <ykonotopov gmail com>
Date:   Sun Mar 27 13:51:13 2016 +0300

    python2: do not decode message length to string

 connector/gs-chrome-connector.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/connector/gs-chrome-connector.py b/connector/gs-chrome-connector.py
index f6867aa..888b5c2 100755
--- a/connector/gs-chrome-connector.py
+++ b/connector/gs-chrome-connector.py
@@ -93,7 +93,7 @@ def read_thread_func(proxy, mainLoop):
         if BUFFER_SUPPORTED:
             text_length_bytes = sys.stdin.buffer.read(4)
         else:
-            text_length_bytes = sys.stdin.read(4).decode('utf-8')
+            text_length_bytes = sys.stdin.read(4)
 
         if len(text_length_bytes) == 0:
             mainLoop.quit()


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