QScintilla/QsciScintillaCompat.py

branch
Py2 comp.
changeset 2684
b1d8db9a31bc
parent 2677
3d4277929fb3
child 2791
a9577f248f04
--- a/QScintilla/QsciScintillaCompat.py	Thu May 30 18:52:46 2013 +0200
+++ b/QScintilla/QsciScintillaCompat.py	Fri May 31 08:56:31 2013 +0200
@@ -247,10 +247,10 @@
         """
         char = self.SendScintilla(QsciScintilla.SCI_GETCHARAT, pos)
         if char == 0:
-            return b""
+            return bytearray()
         if char < 0:
             char += 256
-        return bytes.fromhex("{0:02x}".format(char))
+        return bytearray((char,))
     
     def foldLevelAt(self, line):
         """

eric ide

mercurial