Plugins/CheckerPlugins/Tabnanny/TabnannyDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2680
110ac646a3a0
parent 3004
c4bf32c791d0
child 3058
0a02c433f52d
diff -r 9986ec0e559a -r 10516539f238 Plugins/CheckerPlugins/Tabnanny/TabnannyDialog.py
--- a/Plugins/CheckerPlugins/Tabnanny/TabnannyDialog.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Plugins/CheckerPlugins/Tabnanny/TabnannyDialog.py	Fri Oct 18 23:00:41 2013 +0200
@@ -4,7 +4,8 @@
 #
 
 """
-Module implementing a dialog to show the output of the tabnanny command process.
+Module implementing a dialog to show the output of the tabnanny command
+process.
 """
 
 from __future__ import unicode_literals    # __IGNORE_WARNING__
@@ -17,8 +18,8 @@
 import fnmatch
 
 from PyQt4.QtCore import pyqtSlot, Qt
-from PyQt4.QtGui import QDialog, QDialogButtonBox, QTreeWidgetItem, QApplication, \
-    QHeaderView
+from PyQt4.QtGui import QDialog, QDialogButtonBox, QTreeWidgetItem, \
+    QApplication, QHeaderView
 
 from E5Gui.E5Application import e5App
 
@@ -58,8 +59,9 @@
         """
         Private method to resort the tree.
         """
-        self.resultList.sortItems(self.resultList.sortColumn(),
-                                  self.resultList.header().sortIndicatorOrder())
+        self.resultList.sortItems(
+            self.resultList.sortColumn(),
+            self.resultList.header().sortIndicatorOrder())
         
     def __createResultItem(self, file, line, sourcecode):
         """
@@ -119,7 +121,8 @@
             extensions = set(Preferences.getPython("PythonExtensions") +
                 Preferences.getPython("Python3Extensions"))
             for ext in extensions:
-                files.extend(Utilities.direntries(fn, True, '*{0}'.format(ext), 0))
+                files.extend(
+                    Utilities.direntries(fn, True, '*{0}'.format(ext), 0))
         else:
             files = [fn]
         
@@ -172,7 +175,8 @@
         self.buttonBox.button(QDialogButtonBox.Close).setDefault(True)
         
         if self.noResults:
-            self.__createResultItem(self.trUtf8('No indentation errors found.'), "", "")
+            self.__createResultItem(
+                self.trUtf8('No indentation errors found.'), "", "")
             QApplication.processEvents()
         self.resultList.header().resizeSections(QHeaderView.ResizeToContents)
         self.resultList.header().setStretchLastSection(True)

eric ide

mercurial