Fixed some py3flakes warnings.

Wed, 20 Oct 2010 20:57:08 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 20 Oct 2010 20:57:08 +0200
changeset 690
a2f8b36625e6
parent 689
8ed6155d4d65
child 692
5c2d7b6d47cb

Fixed some py3flakes warnings.

Preferences/ConfigurationPages/EditorHighlightersPage.py file | annotate | diff | comparison | revisions
Project/LexerAssociationDialog.py file | annotate | diff | comparison | revisions
--- a/Preferences/ConfigurationPages/EditorHighlightersPage.py	Wed Oct 20 20:48:10 2010 +0200
+++ b/Preferences/ConfigurationPages/EditorHighlightersPage.py	Wed Oct 20 20:57:08 2010 +0200
@@ -89,7 +89,7 @@
                 index = self.editorLexerList.indexOfTopLevelItem(itmList[0])
                 itm = self.editorLexerList.takeTopLevelItem(index)
                 del itm
-            itm = QTreeWidgetItem(self.editorLexerList, [ext, lexer])
+            QTreeWidgetItem(self.editorLexerList, [ext, lexer])
             self.editorFileExtEdit.clear()
             self.editorLexerCombo.setCurrentIndex(0)
             self.pygmentsLexerCombo.setCurrentIndex(0)
@@ -163,4 +163,4 @@
     @param dlg reference to the configuration dialog
     """
     page = EditorHighlightersPage(dlg.getLexers())
-    return page
\ No newline at end of file
+    return page
--- a/Project/LexerAssociationDialog.py	Wed Oct 20 20:48:10 2010 +0200
+++ b/Project/LexerAssociationDialog.py	Wed Oct 20 20:57:08 2010 +0200
@@ -78,7 +78,7 @@
                 index = self.editorLexerList.indexOfTopLevelItem(itmList[0])
                 itm = self.editorLexerList.takeTopLevelItem(index)
                 del itm
-            itm = QTreeWidgetItem(self.editorLexerList, [ext, lexer])
+            QTreeWidgetItem(self.editorLexerList, [ext, lexer])
             self.editorFileExtEdit.clear()
             self.editorLexerCombo.setCurrentIndex(0)
             self.pygmentsLexerCombo.setCurrentIndex(0)
@@ -155,4 +155,4 @@
         for index in range(self.editorLexerList.topLevelItemCount()):
             itm = self.editorLexerList.topLevelItem(index)
             pattern = itm.text(0)
-            self.project.pdata["LEXERASSOCS"][pattern] = itm.text(1)
\ No newline at end of file
+            self.project.pdata["LEXERASSOCS"][pattern] = itm.text(1)

eric ide

mercurial