Fixed a few PEP-8 related issues.

Wed, 07 Nov 2012 11:52:17 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 07 Nov 2012 11:52:17 +0100
changeset 2194
0fce40af66b8
parent 2193
fc37253e4dbd
child 2195
d6cbd81fb692

Fixed a few PEP-8 related issues.

Graphics/ApplicationDiagramBuilder.py file | annotate | diff | comparison | revisions
Graphics/UMLGraphicsView.py file | annotate | diff | comparison | revisions
Preferences/ConfigurationPages/NetworkPage.py file | annotate | diff | comparison | revisions
Snapshot/SnapshotRegionGrabber.py file | annotate | diff | comparison | revisions
Utilities/__init__.py file | annotate | diff | comparison | revisions
--- a/Graphics/ApplicationDiagramBuilder.py	Tue Nov 06 18:10:28 2012 +0100
+++ b/Graphics/ApplicationDiagramBuilder.py	Wed Nov 07 11:52:17 2012 +0100
@@ -43,7 +43,7 @@
         
         self.noModules = noModules
         
-        self.umlView.setDiagramName( self.trUtf8("Application Diagram {0}").format(
+        self.umlView.setDiagramName(self.trUtf8("Application Diagram {0}").format(
             self.project.getProjectName()))
         
     def __buildModulesDict(self):
--- a/Graphics/UMLGraphicsView.py	Tue Nov 06 18:10:28 2012 +0100
+++ b/Graphics/UMLGraphicsView.py	Wed Nov 07 11:52:17 2012 +0100
@@ -391,7 +391,7 @@
                 if item.isSelected():
                     selectedItems.append(name)
         
-        # 2. save 
+        # 2. save
         
         # 2. re-layout the diagram
         self.__relayout()
--- a/Preferences/ConfigurationPages/NetworkPage.py	Tue Nov 06 18:10:28 2012 +0100
+++ b/Preferences/ConfigurationPages/NetworkPage.py	Wed Nov 07 11:52:17 2012 +0100
@@ -185,7 +185,7 @@
         """
         Private slot handling the selection of a proxy type.
         
-        @param index index of the selected item (integer) 
+        @param index index of the selected item (integer)
         """
         proxyType = self.ftpProxyTypeCombo.itemData(index)
         self.ftpProxyHostEdit.setEnabled(proxyType != E5FtpProxyType.NoProxy)
--- a/Snapshot/SnapshotRegionGrabber.py	Tue Nov 06 18:10:28 2012 +0100
+++ b/Snapshot/SnapshotRegionGrabber.py	Wed Nov 07 11:52:17 2012 +0100
@@ -11,6 +11,7 @@
 from PyQt4.QtGui import QWidget, QPixmap, QColor, QRegion, QApplication, QPainter, \
     QPalette, QToolTip, QPaintEngine, QPen, QBrush
 
+
 def drawRect(painter, rect, outline, fill=QColor()):
     """
     Module function to draw a rectangle with the given parameters.
--- a/Utilities/__init__.py	Tue Nov 06 18:10:28 2012 +0100
+++ b/Utilities/__init__.py	Wed Nov 07 11:52:17 2012 +0100
@@ -1610,7 +1610,7 @@
     @param dataStr string to be converted (string)
     @return converted boolean value (boolean)
     """
-    if dataStr in [ "True", "true", "1", "Yes", "yes"]:
+    if dataStr in ["True", "true", "1", "Yes", "yes"]:
         return True
     elif dataStr in ["False", "false", "0", "No", "no"]:
         return False

eric ide

mercurial