Sat, 25 Feb 2017 19:41:10 +0100
Fixed a few code style issues.
--- a/Plugins/PluginVcsMercurial.py Sat Feb 25 19:36:06 2017 +0100 +++ b/Plugins/PluginVcsMercurial.py Sat Feb 25 19:41:10 2017 +0100 @@ -260,7 +260,7 @@ @classmethod def getPreferences(cls, key): """ - Public method to retrieve the various settings. + Class method to retrieve the various settings. @param key the key of the value to get @return the requested setting @@ -299,7 +299,7 @@ @classmethod def setPreferences(cls, key, value): """ - Public method to store the various settings. + Class method to store the various settings. @param key the key of the setting to be set @param value the value to be set
--- a/Preferences/ConfigurationPages/WebBrowserSpellCheckingPage.py Sat Feb 25 19:36:06 2017 +0100 +++ b/Preferences/ConfigurationPages/WebBrowserSpellCheckingPage.py Sat Feb 25 19:41:10 2017 +0100 @@ -7,6 +7,8 @@ Module implementing the Web Browser Spell Checking configuration page. """ +from __future__ import unicode_literals + from PyQt5.QtCore import pyqtSlot, Qt, QCoreApplication, QDir, QLibraryInfo, \ QLocale from PyQt5.QtWidgets import QListWidgetItem @@ -113,9 +115,6 @@ def on_spellCheckEnabledCheckBox_clicked(self): """ Private slot handling a change of the spell checking enabled state. - - @param checked state of the check box - @type bool """ enable = self.spellCheckEnabledCheckBox.isChecked() self.noLanguagesLabel.setEnabled(enable)
--- a/Project/DebuggerPropertiesDialog.py Sat Feb 25 19:36:06 2017 +0100 +++ b/Project/DebuggerPropertiesDialog.py Sat Feb 25 19:41:10 2017 +0100 @@ -217,7 +217,10 @@ def __clearHistory(self, picker): """ - Private method to clear a path picker history + Private method to clear a path picker history. + + @param picker reference to the path picker + @type E5ComboPathPicker """ currentText = picker.text() picker.clear()
--- a/UI/FindFileDialog.py Sat Feb 25 19:36:06 2017 +0100 +++ b/UI/FindFileDialog.py Sat Feb 25 19:41:10 2017 +0100 @@ -373,7 +373,7 @@ txt = "\\b{0}\\b".format(txt) if sys.version_info[0] == 2: flags = re.UNICODE | re.LOCALE - else: + else: flags = re.UNICODE if not cs: flags |= re.IGNORECASE
--- a/WebBrowser/WebBrowserTabWidget.py Sat Feb 25 19:36:06 2017 +0100 +++ b/WebBrowser/WebBrowserTabWidget.py Sat Feb 25 19:41:10 2017 +0100 @@ -833,9 +833,9 @@ @param browser reference to the browser to be printed @type WebBrowserView """ - QApplication.setOverrideCursor(Qt.WaitCursor); + QApplication.setOverrideCursor(Qt.WaitCursor) browser.page().execPrintPage(printer, 10 * 1000) - QApplication.restoreOverrideCursor(); + QApplication.restoreOverrideCursor() def __sourceChanged(self, url): """