Fixed a few PEP-8 related issues.

Fri, 05 Jul 2013 19:39:15 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 05 Jul 2013 19:39:15 +0200
changeset 2770
fd5ee85f0450
parent 2769
8cbebde7a984
child 2771
281c9b30dd91

Fixed a few PEP-8 related issues.

E5Gui/E5ErrorMessage.py file | annotate | diff | comparison | revisions
Plugins/ViewManagerPlugins/Tabview/Tabview.py file | annotate | diff | comparison | revisions
Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardCharactersDialog.py file | annotate | diff | comparison | revisions
Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardDialog.py file | annotate | diff | comparison | revisions
UI/UserInterface.py file | annotate | diff | comparison | revisions
Utilities/__init__.py file | annotate | diff | comparison | revisions
--- a/E5Gui/E5ErrorMessage.py	Fri Jul 05 19:17:29 2013 +0200
+++ b/E5Gui/E5ErrorMessage.py	Fri Jul 05 19:39:15 2013 +0200
@@ -160,7 +160,7 @@
     if __msgHandlerDialog:
         __msgHandlerDialog.editMessageFilters()
     else:
-        print(QCoreApplication.translate( "E5ErrorMessage",
+        print(QCoreApplication.translate("E5ErrorMessage",
             "No message handler installed."))
 
 
--- a/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Fri Jul 05 19:17:29 2013 +0200
+++ b/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Fri Jul 05 19:39:15 2013 +0200
@@ -370,7 +370,7 @@
         if not editor in self.editors:
             self.editors.append(editor)
             editor.captionChanged.connect(self.__captionChange)
-            editor.cursorLineChanged.connect(self.__cursorLineChanged)        
+            editor.cursorLineChanged.connect(self.__cursorLineChanged)
         emptyIndex = self.indexOf(self.emptyLabel)
         if emptyIndex > -1:
             self.removeTab(emptyIndex)
--- a/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardCharactersDialog.py	Fri Jul 05 19:17:29 2013 +0200
+++ b/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardCharactersDialog.py	Fri Jul 05 19:39:15 2013 +0200
@@ -39,22 +39,22 @@
         self.comboItems.append((self.trUtf8(
             "ASCII/Latin1 character in octal notation"), "-o"))
         self.singleComboItems.extend([
-            ("---", "-i"), 
-            (self.trUtf8("Bell character (\\a)"), "\\a"), 
-            (self.trUtf8("Escape character (\\e)"), "\\e"), 
-            (self.trUtf8("Page break (\\f)"), "\\f"), 
-            (self.trUtf8("Line feed (\\n)"), "\\n"), 
-            (self.trUtf8("Carriage return (\\r)"), "\\r"), 
-            (self.trUtf8("Horizontal tabulator (\\t)"), "\\t"), 
-            ("---", "-i"), 
-            (self.trUtf8("Character Category"), "-ccp"), 
-            (self.trUtf8("Special Character Category"), "-csp"), 
-            (self.trUtf8("Character Block"), "-cbp"), 
-            (self.trUtf8("POSIX Named Set"), "-psp"), 
-            (self.trUtf8("Not Character Category"), "-ccn"), 
-            (self.trUtf8("Not Character Block"), "-cbn"), 
-            (self.trUtf8("Not Special Character Category"), "-csn"), 
-            (self.trUtf8("Not POSIX Named Set"), "-psn"), 
+            ("---", "-i"),
+            (self.trUtf8("Bell character (\\a)"), "\\a"),
+            (self.trUtf8("Escape character (\\e)"), "\\e"),
+            (self.trUtf8("Page break (\\f)"), "\\f"),
+            (self.trUtf8("Line feed (\\n)"), "\\n"),
+            (self.trUtf8("Carriage return (\\r)"), "\\r"),
+            (self.trUtf8("Horizontal tabulator (\\t)"), "\\t"),
+            ("---", "-i"),
+            (self.trUtf8("Character Category"), "-ccp"),
+            (self.trUtf8("Special Character Category"), "-csp"),
+            (self.trUtf8("Character Block"), "-cbp"),
+            (self.trUtf8("POSIX Named Set"), "-psp"),
+            (self.trUtf8("Not Character Category"), "-ccn"),
+            (self.trUtf8("Not Character Block"), "-cbn"),
+            (self.trUtf8("Not Special Character Category"), "-csn"),
+            (self.trUtf8("Not POSIX Named Set"), "-psn"),
         ])
         
         self.charValidator = QRegExpValidator(QRegExp(".{0,1}"), self)
--- a/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardDialog.py	Fri Jul 05 19:17:29 2013 +0200
+++ b/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardDialog.py	Fri Jul 05 19:39:15 2013 +0200
@@ -375,7 +375,7 @@
             self,
             self.trUtf8("Save regular expression"),
             "",
-            self.trUtf8("RegExp Files (*.rx);;All Files (*)"), 
+            self.trUtf8("RegExp Files (*.rx);;All Files (*)"),
             None,
             E5FileDialog.Options(E5FileDialog.DontConfirmOverwrite))
         if fname:
--- a/UI/UserInterface.py	Fri Jul 05 19:17:29 2013 +0200
+++ b/UI/UserInterface.py	Fri Jul 05 19:39:15 2013 +0200
@@ -2033,7 +2033,7 @@
         try:
             import PyQt5        # __IGNORE_WARNING__
             self.pyqt5DocAct = E5Action(self.trUtf8('PyQt5 Documentation'),
-                self.trUtf8('PyQt&5 Documentation'),0, 0, self, 'pyqt5_documentation')
+                self.trUtf8('PyQt&5 Documentation'), 0, 0, self, 'pyqt5_documentation')
             self.pyqt5DocAct.setStatusTip(self.trUtf8('Open PyQt5 Documentation'))
             self.pyqt5DocAct.setWhatsThis(self.trUtf8(
                 """<b>PyQt5 Documentation</b>"""
--- a/Utilities/__init__.py	Fri Jul 05 19:17:29 2013 +0200
+++ b/Utilities/__init__.py	Fri Jul 05 19:39:15 2013 +0200
@@ -1499,6 +1499,7 @@
 # Qt utility functions below
 ################################################################################
 
+
 def generatePySideToolPath(toolname):
     """
     Module function to generate the executable path for a PySide tool.

eric ide

mercurial