Utilities/BackgroundClient.py

branch
BgService
changeset 3241
957673fc463a
parent 3209
c5432abceb25
child 3417
5a93c6cdc989
--- a/Utilities/BackgroundClient.py	Fri Jan 17 23:38:29 2014 +0100
+++ b/Utilities/BackgroundClient.py	Fri Jan 31 22:11:45 2014 +0100
@@ -36,7 +36,7 @@
         self.services = {}
         
         self.connection = socket.create_connection((host, port))
-        ver = b'2' if sys.version_info[0] == 2 else b'3'
+        ver = b'Python2' if sys.version_info[0] == 2 else b'Python3'
         self.connection.sendall(ver)
         self.connection.settimeout(0.25)
 
@@ -124,7 +124,7 @@
         """
         # TODO: Wrap arguments so they can be serialized by JSON
         self.__send(
-            'exception', '?', [str(exctype), str(excval), str(exctb)])
+            'EXCEPTION', '?', [str(exctype), str(excval), str(exctb)])
 
 if __name__ == '__main__':
     if len(sys.argv) != 3:

eric ide

mercurial