Mon, 30 Jan 2012 18:53:47 +0100
Did some PEP-8 related corrections.
--- a/Graphics/PixmapDiagram.py Sat Jan 28 11:36:56 2012 +0100 +++ b/Graphics/PixmapDiagram.py Mon Jan 30 18:53:47 2012 +0100 @@ -194,7 +194,7 @@ @param evt reference to the wheel event (QWheelEvent) """ if evt.modifiers() & Qt.ControlModifier: - if evt.delta()< 0: + if evt.delta() < 0: self.__zoomOut() else: self.__zoomIn()
--- a/Graphics/SvgDiagram.py Sat Jan 28 11:36:56 2012 +0100 +++ b/Graphics/SvgDiagram.py Mon Jan 30 18:53:47 2012 +0100 @@ -165,7 +165,7 @@ @param evt reference to the wheel event (QWheelEvent) """ if evt.modifiers() & Qt.ControlModifier: - if evt.delta()< 0: + if evt.delta() < 0: self.__zoomOut() else: self.__zoomIn()
--- a/Graphics/UMLGraphicsView.py Sat Jan 28 11:36:56 2012 +0100 +++ b/Graphics/UMLGraphicsView.py Mon Jan 30 18:53:47 2012 +0100 @@ -512,7 +512,7 @@ @param evt reference to the wheel event (QWheelEvent) """ if evt.modifiers() & Qt.ControlModifier: - if evt.delta()< 0: + if evt.delta() < 0: self.zoomOut() else: self.zoomIn()
--- a/Plugins/VcsPlugins/vcsPySvn/subversion.py Sat Jan 28 11:36:56 2012 +0100 +++ b/Plugins/VcsPlugins/vcsPySvn/subversion.py Mon Jan 30 18:53:47 2012 +0100 @@ -737,7 +737,7 @@ d = os.path.dirname(d) else: while not os.path.exists(os.path.join(d, self.adminDir)): - # add directories recursively, + # add directories recursively, # if they aren't in the repository already if d in tree: break @@ -1300,7 +1300,7 @@ return self.statusCache[name] name = os.path.normcase(name) - states = { name : 0 } + states = {name: 0} states = self.vcsAllRegisteredStates(states, dname, False) if states[name] == self.canBeCommitted: return self.canBeCommitted @@ -1352,7 +1352,7 @@ else: return self.__vcsAllRegisteredStates_wc(names, dname, shortcut) - def __vcsAllRegisteredStates_wcng(self, names, dname, shortcut = True): + def __vcsAllRegisteredStates_wcng(self, names, dname, shortcut=True): """ Private method used to get the registered states of a number of files in the vcs. @@ -1366,7 +1366,7 @@ @param names dictionary with all filenames to be checked as keys @param dname directory to check in (string) @param shortcut flag indicating a shortcut should be taken (boolean) - @return the received dictionary completed with a combination of + @return the received dictionary completed with a combination of canBeCommited and canBeAdded or None in order to signal an error """ if dname.endswith(os.sep): @@ -1397,8 +1397,8 @@ try: locker = QMutexLocker(self.vcsExecutionMutex) - allFiles = client.status(dname, recurse = True, get_all = True, - ignore = True, update = False) + allFiles = client.status(dname, recurse=True, get_all=True, + ignore=True, update=False) locker.unlock() dirs = [x for x in names.keys() if os.path.isdir(x)] for file in allFiles: @@ -1429,7 +1429,7 @@ return names - def __vcsAllRegisteredStates_wc(self, names, dname, shortcut = True): + def __vcsAllRegisteredStates_wc(self, names, dname, shortcut=True): """ Private method used to get the registered states of a number of files in the vcs. @@ -1443,7 +1443,7 @@ @param names dictionary with all filenames to be checked as keys @param dname directory to check in (string) @param shortcut flag indicating a shortcut should be taken (boolean) - @return the received dictionary completed with a combination of + @return the received dictionary completed with a combination of canBeCommited and canBeAdded or None in order to signal an error """ if not os.path.isdir(os.path.join(dname, self.adminDir)):
--- a/Plugins/VcsPlugins/vcsSubversion/subversion.py Sat Jan 28 11:36:56 2012 +0100 +++ b/Plugins/VcsPlugins/vcsSubversion/subversion.py Mon Jan 30 18:53:47 2012 +0100 @@ -670,7 +670,7 @@ d = os.path.dirname(d) else: while not os.path.exists(os.path.join(d, self.adminDir)): - # add directories recursively, + # add directories recursively, # if they aren't in the repository already if d in tree: break @@ -1132,7 +1132,7 @@ return self.statusCache[name] name = os.path.normcase(name) - states = { name : 0 } + states = {name: 0} states = self.vcsAllRegisteredStates(states, dname, False) if states[name] == self.canBeCommitted: return self.canBeCommitted @@ -1184,7 +1184,7 @@ else: return self.__vcsAllRegisteredStates_wc(names, dname, shortcut) - def __vcsAllRegisteredStates_wcng(self, names, dname, shortcut = True): + def __vcsAllRegisteredStates_wcng(self, names, dname, shortcut=True): """ Private method used to get the registered states of a number of files in the vcs. @@ -1198,7 +1198,7 @@ @param names dictionary with all filenames to be checked as keys @param dname directory to check in (string) @param shortcut flag indicating a shortcut should be taken (boolean) - @return the received dictionary completed with a combination of + @return the received dictionary completed with a combination of canBeCommited and canBeAdded or None in order to signal an error """ if dname.endswith(os.sep): @@ -1252,7 +1252,7 @@ return names - def __vcsAllRegisteredStates_wc(self, names, dname, shortcut = True): + def __vcsAllRegisteredStates_wc(self, names, dname, shortcut=True): """ Private method used to get the registered states of a number of files in the vcs. @@ -1266,7 +1266,7 @@ @param names dictionary with all filenames to be checked as keys @param dname directory to check in (string) @param shortcut flag indicating a shortcut should be taken (boolean) - @return the received dictionary completed with a combination of + @return the received dictionary completed with a combination of canBeCommited and canBeAdded or None in order to signal an error """ if not os.path.isdir(os.path.join(dname, self.adminDir)):
--- a/QScintilla/Editor.py Sat Jan 28 11:36:56 2012 +0100 +++ b/QScintilla/Editor.py Mon Jan 30 18:53:47 2012 +0100 @@ -2938,13 +2938,13 @@ begline = line while begline > 0 and \ self.text(begline - 1).strip().startswith(commentStr): - begline -= 1 + begline -= 1 # determine the end of the comment block endline = line lines = self.lines() while endline < lines and \ self.text(endline + 1).strip().startswith(commentStr): - endline += 1 + endline += 1 self.setSelection(begline, 0, endline, self.lineLength(endline)) self.uncommentLineOrSelection() @@ -5411,7 +5411,7 @@ @param evt reference to the wheel event (QWheelEvent) """ if evt.modifiers() & Qt.ControlModifier: - if evt.delta()< 0: + if evt.delta() < 0: self.zoomOut() else: self.zoomIn()
--- a/QScintilla/Shell.py Sat Jan 28 11:36:56 2012 +0100 +++ b/QScintilla/Shell.py Mon Jan 30 18:53:47 2012 +0100 @@ -736,7 +736,7 @@ @param evt reference to the wheel event (QWheelEvent) """ if evt.modifiers() & Qt.ControlModifier: - if evt.delta()< 0: + if evt.delta() < 0: self.zoomOut() else: self.zoomIn()
--- a/QScintilla/Terminal.py Sat Jan 28 11:36:56 2012 +0100 +++ b/QScintilla/Terminal.py Mon Jan 30 18:53:47 2012 +0100 @@ -495,7 +495,7 @@ @param evt reference to the wheel event (QWheelEvent) """ if evt.modifiers() & Qt.ControlModifier: - if evt.delta()< 0: + if evt.delta() < 0: self.zoomOut() else: self.zoomIn() @@ -539,6 +539,7 @@ pinch.setScaleFactor(3.0) self.zoomTo(zoom) evt.accept() + def editorCommand(self, cmd): """ Public method to perform an editor command.