QScintilla/Lexers/__init__.py

branch
Py2 comp.
changeset 2791
a9577f248f04
parent 2525
8b507a9a2d40
parent 2763
e4794166ad70
child 3057
10516539f238
--- a/QScintilla/Lexers/__init__.py	Mon Jul 08 21:47:26 2013 +0200
+++ b/QScintilla/Lexers/__init__.py	Mon Jul 08 22:36:10 2013 +0200
@@ -40,7 +40,7 @@
     @param displayString display string (string)
     @param filenameSample dummy filename to derive lexer name (string)
     @param getLexerFunc reference to a function instantiating the specific lexer.
-        This function must take a reference to the parent as it's only argument.
+        This function must take a reference to the parent as its only argument.
     @keyparam openFilters list of open file filters (list of strings)
     @keyparam saveFilters list of save file filters (list of strings)
     @keyparam defaultAssocs default lexer associations (list of strings of filename
@@ -408,7 +408,7 @@
         ])
     
     for name in LexerRegistry:
-        openFileFiltersList.append(LexerRegistry[name][3])
+        openFileFiltersList.extend(LexerRegistry[name][3])
     
     if withAdditional:
         openFileFiltersList.extend(Preferences.getEditor("AdditionalOpenFilters"))
@@ -545,7 +545,7 @@
         ])
     
     for name in LexerRegistry:
-        saveFileFiltersList.append(LexerRegistry[name][4])
+        saveFileFiltersList.extend(LexerRegistry[name][4])
     
     if withAdditional:
         saveFileFiltersList.extend(Preferences.getEditor("AdditionalSaveFilters"))

eric ide

mercurial