Fix for the PDF exporter. Py2 comp.

Fri, 31 May 2013 08:56:31 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Fri, 31 May 2013 08:56:31 +0200
branch
Py2 comp.
changeset 2684
b1d8db9a31bc
parent 2680
110ac646a3a0
child 2698
1dcd5d887980

Fix for the PDF exporter.

QScintilla/QsciScintillaCompat.py file | annotate | diff | comparison | revisions
--- 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