Wed, 07 Nov 2012 11:52:17 +0100
Fixed a few PEP-8 related issues.
--- 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