eric6/QScintilla/Editor.py

changeset 7628
f904d0eef264
parent 7575
3ebd1db41c15
child 7635
0cdead130a81
--- a/eric6/QScintilla/Editor.py	Wed Jun 17 17:12:21 2020 +0200
+++ b/eric6/QScintilla/Editor.py	Wed Jun 17 20:18:54 2020 +0200
@@ -1416,7 +1416,7 @@
         @return name of the selected pygments lexer (string)
         """
         from pygments.lexers import get_all_lexers
-        lexerList = sorted(l[0] for l in get_all_lexers())
+        lexerList = sorted(lex[0] for lex in get_all_lexers())
         try:
             lexerSel = lexerList.index(
                 self.getLanguage(normalized=False, forPygments=True))
@@ -6498,8 +6498,6 @@
         @param warningKind kind of warning to clear (Editor.WarningCode,
             Editor.WarningStyle)
         """
-        assert warningKind in [Editor.WarningCode, Editor.WarningStyle]
-        
         for handle in list(self.warnings.keys()):
             warnings = []
             for msg, warningType in self.warnings[handle]:
@@ -8084,12 +8082,12 @@
         formatStr = "@@{0} {1} {2} {3}"
         commands = []
         for token, i1, i2, j1, j2 in matcher.get_opcodes():
-            if token == "insert":
+            if token == "insert":               # secok
                 commands.append(formatStr.format("i", j1, j2 - j1, -1))
                 commands.extend(newL[j1:j2])
-            elif token == "delete":
+            elif token == "delete":             # secok
                 commands.append(formatStr.format("d", j1, i2 - i1, -1))
-            elif token == "replace":
+            elif token == "replace":            # secok
                 commands.append(formatStr.format("r", j1, i2 - i1, j2 - j1))
                 commands.extend(newL[j1:j2])
         

eric ide

mercurial