Mon, 28 Nov 2011 20:03:49 +0100
Fixed a few PEP-8 issues.
--- a/DebugClients/Python3/DebugClientBase.py Sun Nov 27 19:38:09 2011 +0100 +++ b/DebugClients/Python3/DebugClientBase.py Mon Nov 28 20:03:49 2011 +0100 @@ -1407,12 +1407,12 @@ qtVariable = False if len(udict) > 0: if access: - loc = {"udict" : udict} + loc = {"udict": udict} exec('qvar = udict{0!s}'.format(access), globals(), loc) qvar = loc["qvar"] # this has to be in line with VariablesViewer.indicators elif rvar and rvar[0][-2:] in ["[]", "()", "{}"]: - loc = {"udict" : udict} + loc = {"udict": udict} exec('qvar = udict["{0!s}"][{1!s}]'.format(rvar[0][:-2], rvar[1]), globals(), loc) qvar = loc["qvar"] @@ -1431,7 +1431,7 @@ else: # treatment for sequences and dictionaries if access: - loc = {"dict" : dict} + loc = {"dict": dict} exec("dict = dict{0!s}".format(access), globals(), loc) dict = loc["dict"] else: @@ -1440,7 +1440,7 @@ dictkeys = dict.keys() else: dictkeys = range(len(dict)) - vlist = self.__formatVariablesList(dictkeys, dict, scope, filter, + vlist = self.__formatVariablesList(dictkeys, dict, scope, filter, formatSequences) varlist.extend(vlist)
--- a/Helpviewer/Feeds/FeedsManager.py Sun Nov 27 19:38:09 2011 +0100 +++ b/Helpviewer/Feeds/FeedsManager.py Mon Nov 28 20:03:49 2011 +0100 @@ -49,8 +49,8 @@ self.__wasShown = False self.__loaded = False self.__feeds = [] - self.__replies = {} # dict key is the id of the request object - # dict value is a tuple of request and tree item + self.__replies = {} # dict key is the id of the request object + # dict value is a tuple of request and tree item self.feedsTree.setContextMenuPolicy(Qt.CustomContextMenu) self.feedsTree.customContextMenuRequested.connect(
--- a/Helpviewer/HelpBrowserWV.py Sun Nov 27 19:38:09 2011 +0100 +++ b/Helpviewer/HelpBrowserWV.py Mon Nov 28 20:03:49 2011 +0100 @@ -1630,7 +1630,7 @@ """ self.__rss = [] - frame =self.page().mainFrame() + frame = self.page().mainFrame() linkElementsList = frame.findAllElements("link").toList() for linkElement in linkElementsList:
--- a/Helpviewer/SiteInfo/SiteInfoDialog.py Sun Nov 27 19:38:09 2011 +0100 +++ b/Helpviewer/SiteInfo/SiteInfoDialog.py Mon Nov 28 20:03:49 2011 +0100 @@ -175,7 +175,7 @@ act = menu.addAction(self.trUtf8("Copy Image Location to Clipboard"), self.__copyAction) act.setData(itm.text(1)) - act = menu.addAction(self.trUtf8("Copy Image Name to Clipboard"), + act = menu.addAction(self.trUtf8("Copy Image Name to Clipboard"), self.__copyAction) act.setData(itm.text(0)) menu.addSeparator()
--- a/Preferences/ConfigurationPages/EditorPropertiesPage.py Sun Nov 27 19:38:09 2011 +0100 +++ b/Preferences/ConfigurationPages/EditorPropertiesPage.py Mon Nov 28 20:03:49 2011 +0100 @@ -70,7 +70,6 @@ else: self.cppHighlightTripleQuotedCheckBox.setEnabled(False) - # CSS self.foldCssCommentCheckBox.setChecked( Preferences.getEditor("CssFoldComment"))
--- a/Preferences/__init__.py Sun Nov 27 19:38:09 2011 +0100 +++ b/Preferences/__init__.py Mon Nov 28 20:03:49 2011 +0100 @@ -2016,7 +2016,7 @@ "JavaScriptCanAccessClipboard", "PluginsEnabled", "DnsPrefetchEnabled", "OfflineStorageDatabaseEnabled", "OfflineWebApplicationCacheEnabled", "LocalStorageEnabled", "ShowPreview", "AccessKeysEnabled", - "VirusTotalEnabled", "VirusTotalSecure", "DoNotTrack", + "VirusTotalEnabled", "VirusTotalSecure", "DoNotTrack", "SpatialNavigationEnabled", "LinksIncludedInFocusChain", "LocalContentCanAccessRemoteUrls", "LocalContentCanAccessFileUrls", "XSSAuditingEnabled", "SiteSpecificQuirksEnabled"]:
--- a/QScintilla/Editor.py Sun Nov 27 19:38:09 2011 +0100 +++ b/QScintilla/Editor.py Mon Nov 28 20:03:49 2011 +0100 @@ -3424,7 +3424,6 @@ Preferences.getEditor("OnlineSyntaxCheckInterval") * 1000) else: self.__onlineSyntaxCheckTimer.stop() - # refresh the annotations display self.__refreshAnnotations()
--- a/QScintilla/EditorAssembly.py Sun Nov 27 19:38:09 2011 +0100 +++ b/QScintilla/EditorAssembly.py Mon Nov 28 20:03:49 2011 +0100 @@ -90,7 +90,7 @@ if lineno is not None: txt = self.__editor.text(lineno - 1).rstrip() pos = len(txt.replace(txt.strip(), "")) - self.__editor.gotoLine(lineno, pos if pos == 0 else pos +1) + self.__editor.gotoLine(lineno, pos if pos == 0 else pos + 1) self.__editor.setFocus() # step 2: populate the members combo, if the entry is a class @@ -147,7 +147,7 @@ if lineno is not None: txt = self.__editor.text(lineno - 1).rstrip() pos = len(txt.replace(txt.strip(), "")) - self.__editor.gotoLine(lineno, pos if pos == 0 else pos +1) + self.__editor.gotoLine(lineno, pos if pos == 0 else pos + 1) self.__editor.setFocus() def __resetParseTimer(self):
--- a/QScintilla/MiniEditor.py Sun Nov 27 19:38:09 2011 +0100 +++ b/QScintilla/MiniEditor.py Mon Nov 28 20:03:49 2011 +0100 @@ -645,7 +645,7 @@ 0, 0, self.editorActGrp, 'vm_edit_move_first_visible_char') if not isMacPlatform(): - act.setShortcut(QKeySequence( + act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Home'))) self.esm.setMapping(act, QsciScintilla.SCI_VCHOME) act.triggered[()].connect(self.esm.map) @@ -1277,7 +1277,7 @@ self.editorActGrp, 'vm_edit_extend_rect_selection_first_visible_char') if not isMacPlatform(): - act.setShortcut(QKeySequence( + act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Shift+Home'))) self.esm.setMapping(act, QsciScintilla.SCI_VCHOMERECTEXTEND) act.triggered[()].connect(self.esm.map)
--- a/UI/UserInterface.py Sun Nov 27 19:38:09 2011 +0100 +++ b/UI/UserInterface.py Mon Nov 28 20:03:49 2011 +0100 @@ -4952,7 +4952,7 @@ @param pageName name of the configuration page to show (string) """ - dlg = ConfigurationDialog(self, 'Configuration') ##, True) + dlg = ConfigurationDialog(self, 'Configuration') dlg.preferencesChanged.connect(self.__preferencesChanged) dlg.masterPasswordChanged.connect(self.__masterPasswordChanged) dlg.show()
--- a/Utilities/__init__.py Sun Nov 27 19:38:09 2011 +0100 +++ b/Utilities/__init__.py Mon Nov 28 20:03:49 2011 +0100 @@ -708,7 +708,7 @@ cur_path = os.path.join(os.curdir, file) if os.path.exists(cur_path): if os.access(cur_path, os.X_OK): - return cur_path + return cur_path path = os.getenv('PATH')
--- a/ViewManager/ViewManager.py Sun Nov 27 19:38:09 2011 +0100 +++ b/ViewManager/ViewManager.py Mon Nov 28 20:03:49 2011 +0100 @@ -1233,7 +1233,7 @@ 0, 0, self.editorActGrp, 'vm_edit_move_first_visible_char') if not isMacPlatform(): - act.setShortcut(QKeySequence( + act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Home'))) self.esm.setMapping(act, QsciScintilla.SCI_VCHOME) act.triggered[()].connect(self.esm.map) @@ -1875,7 +1875,7 @@ self.editorActGrp, 'vm_edit_extend_rect_selection_first_visible_char') if not isMacPlatform(): - act.setShortcut(QKeySequence( + act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Shift+Home'))) self.esm.setMapping(act, QsciScintilla.SCI_VCHOMERECTEXTEND) act.triggered[()].connect(self.esm.map)