Fixed some py3flakes warnings. 5_0_x

Wed, 20 Oct 2010 21:00:31 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 20 Oct 2010 21:00:31 +0200
branch
5_0_x
changeset 691
e4b2b0a27b4c
parent 685
614babee9ae9
child 693
ca35ffad8958

Fixed some py3flakes warnings.

Preferences/ConfigurationPages/EditorHighlightersPage.py file | annotate | diff | comparison | revisions
Preferences/ConfigurationPages/EditorKeywordsPage.py file | annotate | diff | comparison | revisions
Project/LexerAssociationDialog.py file | annotate | diff | comparison | revisions
UI/DiffDialog.py file | annotate | diff | comparison | revisions
--- a/Preferences/ConfigurationPages/EditorHighlightersPage.py	Wed Oct 20 08:40:46 2010 +0200
+++ b/Preferences/ConfigurationPages/EditorHighlightersPage.py	Wed Oct 20 21:00:31 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)
--- a/Preferences/ConfigurationPages/EditorKeywordsPage.py	Wed Oct 20 08:40:46 2010 +0200
+++ b/Preferences/ConfigurationPages/EditorKeywordsPage.py	Wed Oct 20 21:00:31 2010 +0200
@@ -8,7 +8,6 @@
 """
 
 from PyQt4.QtCore import pyqtSlot
-from PyQt4.QtGui import QWidget
 
 from .ConfigurationPageBase import ConfigurationPageBase
 from .Ui_EditorKeywordsPage import Ui_EditorKeywordsPage
--- a/Project/LexerAssociationDialog.py	Wed Oct 20 08:40:46 2010 +0200
+++ b/Project/LexerAssociationDialog.py	Wed Oct 20 21:00:31 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)
--- a/UI/DiffDialog.py	Wed Oct 20 08:40:46 2010 +0200
+++ b/UI/DiffDialog.py	Wed Oct 20 21:00:31 2010 +0200
@@ -284,7 +284,7 @@
         if not ext:
             ex = selectedFilter.split("(*")[1].split(")")[0]
             if ex:
-                fileName += ex
+                fname += ex
         if QFileInfo(fname).exists():
             res = QMessageBox.warning(self,
                 self.trUtf8("Save Diff"),

eric ide

mercurial