DebugClients/Python3/DebugClientBase.py

changeset 42
23b45a742e17
parent 33
597036b70646
child 43
2fdc635b106a
--- a/DebugClients/Python3/DebugClientBase.py	Fri Jan 08 19:14:19 2010 +0000
+++ b/DebugClients/Python3/DebugClientBase.py	Sat Jan 09 19:43:36 2010 +0000
@@ -205,7 +205,7 @@
         
         self.compile_command = codeop.CommandCompiler()
         
-        self.coding_re = re.compile(r"coding[:=]\s*([-\w_.]+)")
+        self.coding_re = re.compile(br"coding[:=]\s*([-\w_.]+)")
         self.defaultCoding = 'utf-8'
         self.__coding = self.defaultCoding
         self.noencoding = False
@@ -241,7 +241,7 @@
             for l in text.splitlines():
                 m = self.coding_re.search(l)
                 if m:
-                    self.__coding = m.group(1)
+                    self.__coding = m.group(1).decode()
                     return
             self.__coding = default
 

eric ide

mercurial