QScintilla/Editor.py

branch
Py2 comp.
changeset 2526
a91cba8291b9
parent 2525
8b507a9a2d40
child 2571
e6bb19eb87ea
--- a/QScintilla/Editor.py	Mon Mar 25 03:11:06 2013 +0100
+++ b/QScintilla/Editor.py	Mon Mar 25 03:28:43 2013 +0100
@@ -7,6 +7,10 @@
 Module implementing the editor component of the eric5 IDE.
 """
 from __future__ import unicode_literals    # __IGNORE_WARNING__
+try:
+    chr = unichr
+except (NameError):
+    pass
 
 import os
 import re
@@ -6620,7 +6624,8 @@
             if not commandLine.startswith("@@"):
                 continue
             
-            command, *args = commandLine.split()
+            args = commandLine.split()
+            command = args.pop(0)
             pos, l1, l2 = [int(arg) for arg in args]
             if command == "@@i":
                 txt = sep.join(commands[0:l1]) + sep

eric ide

mercurial