Fixed some code style issues.

Sat, 04 Jan 2014 18:39:24 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 04 Jan 2014 18:39:24 +0100
changeset 3171
2c37b9a37b2d
parent 3170
b177fe3b0063
child 3175
1a6638ccce9d

Fixed some code style issues.

Documentation/Help/source.qch file | annotate | diff | comparison | revisions
Documentation/Source/eric5.Plugins.CheckerPlugins.CodeStyleChecker.CodeStyleChecker.html file | annotate | diff | comparison | revisions
PluginManager/PluginManager.py file | annotate | diff | comparison | revisions
Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py file | annotate | diff | comparison | revisions
Plugins/WizardPlugins/FileDialogWizard/FileDialogWizardDialog.py file | annotate | diff | comparison | revisions
Binary file Documentation/Help/source.qch has changed
--- a/Documentation/Source/eric5.Plugins.CheckerPlugins.CodeStyleChecker.CodeStyleChecker.html	Sat Jan 04 18:09:21 2014 +0100
+++ b/Documentation/Source/eric5.Plugins.CheckerPlugins.CodeStyleChecker.CodeStyleChecker.html	Sat Jan 04 18:39:24 2014 +0100
@@ -100,6 +100,12 @@
 type of the documentation strings
             (string, one of 'eric' or 'pep257')
 </dd>
+</dl><dl>
+<dt>Raises <b>AssertionError</b>:</dt>
+<dd>
+raised if the docType argument is not
+            "eric" or "pep257"
+</dd>
 </dl>
 <div align="right"><a href="#top">Up</a></div>
 <hr />
--- a/PluginManager/PluginManager.py	Sat Jan 04 18:09:21 2014 +0100
+++ b/PluginManager/PluginManager.py	Sat Jan 04 18:39:24 2014 +0100
@@ -1125,7 +1125,7 @@
                                     " updates available. Use the plug-in"
                                     " repository dialog to get them.</p>"),
                         E5MessageBox.StandardButtons(
-                            E5MessageBox.Ignore | \
+                            E5MessageBox.Ignore |
                             E5MessageBox.Open),
                         E5MessageBox.Open)
                     if res == E5MessageBox.Open:
--- a/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Sat Jan 04 18:09:21 2014 +0100
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Sat Jan 04 18:39:24 2014 +0100
@@ -43,6 +43,8 @@
             brackets (boolean)
         @keyparam docType type of the documentation strings
             (string, one of 'eric' or 'pep257')
+        @exception AssertionError raised if the docType argument is not
+            "eric" or "pep257"
         """
         assert docType in ("eric", "pep257")
         
--- a/Plugins/WizardPlugins/FileDialogWizard/FileDialogWizardDialog.py	Sat Jan 04 18:09:21 2014 +0100
+++ b/Plugins/WizardPlugins/FileDialogWizard/FileDialogWizardDialog.py	Sat Jan 04 18:39:24 2014 +0100
@@ -102,7 +102,8 @@
         
         self.__pyqtVariant = 5 if txt == "PyQt5" else 4
         
-        self.__toggleInitialFilterAndResult(self.__typeButtonsGroup.checkedId())
+        self.__toggleInitialFilterAndResult(
+            self.__typeButtonsGroup.checkedId())
     
     def on_buttonBox_clicked(self, button):
         """
@@ -279,7 +280,7 @@
                 self.__typeButtonsGroup.checkedButton() in [
                     self.rfOpenFile, self.rfOpenFiles, self.rfSaveFile]) or \
                 (self.__pyqtVariant == 5 and
-                self.__typeButtonsGroup.checkedButton() in [
+                 self.__typeButtonsGroup.checkedButton() in [
                     self.rOpenFile, self.rOpenFiles, self.rSaveFile]):
                 filterVariable = ", selectedFilter"
             else:

eric ide

mercurial