Fixed some code style issues. micropython

Sat, 27 Jul 2019 17:52:00 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 27 Jul 2019 17:52:00 +0200
branch
micropython
changeset 7089
9f9816b19aa4
parent 7088
e29b0ee86b29
child 7090
f4427962a4da

Fixed some code style issues.

eric6.e4p file | annotate | diff | comparison | revisions
eric6/E5Gui/E5FileSaveConfirmDialog.py file | annotate | diff | comparison | revisions
eric6/MicroPython/MicroPythonFileManagerWidget.py file | annotate | diff | comparison | revisions
eric6/MicroPython/MicroPythonFileSystem.py file | annotate | diff | comparison | revisions
eric6/UI/UserInterface.py file | annotate | diff | comparison | revisions
--- a/eric6.e4p	Sat Jul 27 17:02:01 2019 +0200
+++ b/eric6.e4p	Sat Jul 27 17:52:00 2019 +0200
@@ -2947,6 +2947,19 @@
               </dict>
             </value>
             <key>
+              <string>CommentedCodeChecker</string>
+            </key>
+            <value>
+              <dict>
+                <key>
+                  <string>Aggressive</string>
+                </key>
+                <value>
+                  <bool>False</bool>
+                </value>
+              </dict>
+            </value>
+            <key>
               <string>CopyrightAuthor</string>
             </key>
             <value>
@@ -2974,7 +2987,7 @@
               <string>ExcludeMessages</string>
             </key>
             <value>
-              <string>C101, E265, E266, E305, E402, M201, M811, M834, N802, N803, N807, N808, N821, W293, W504</string>
+              <string>C101, E265, E266, E305, E402, M201, M301, M302, M303, M304, M305, M306, M307, M308, M311, M312, M313, M314, M315, M321, M811, M834, M841, M891, N802, N803, N807, N808, N821, W293, W504</string>
             </value>
             <key>
               <string>FixCodes</string>
--- a/eric6/E5Gui/E5FileSaveConfirmDialog.py	Sat Jul 27 17:02:01 2019 +0200
+++ b/eric6/E5Gui/E5FileSaveConfirmDialog.py	Sat Jul 27 17:52:00 2019 +0200
@@ -28,9 +28,9 @@
         
         @param filename file name to be shown
         @type str
-        @param message message to be shown
+        @param title title for the dialog
         @type str
-        @param title title for the dialog
+        @param message message to be shown
         @type str
         @param picker flag indicating to use a path picker
         @type bool
@@ -130,9 +130,9 @@
     
     @param filename file name to be shown
     @type str
-    @param message message to be shown
+    @param title title for the dialog
     @type str
-    @param title title for the dialog
+    @param message message to be shown
     @type str
     @param picker flag indicating to use a path picker
     @type bool
--- a/eric6/MicroPython/MicroPythonFileManagerWidget.py	Sat Jul 27 17:02:01 2019 +0200
+++ b/eric6/MicroPython/MicroPythonFileManagerWidget.py	Sat Jul 27 17:52:00 2019 +0200
@@ -776,7 +776,7 @@
                      Globals.dataString(totalSize),
                      Globals.dataString(usedSize),
                      Globals.dataString(freeSize),
-            )
+                     )
         E5MessageBox.information(
             self,
             self.tr("Filesystem Information"),
@@ -875,7 +875,7 @@
     @pyqtSlot(str, str)
     def __deviceImplementationReceived(self, name, version):
         """
-        Privat slot handling the receipt of implementation info.
+        Private slot handling the receipt of implementation info.
         
         @param name name of the implementation
         @type str
--- a/eric6/MicroPython/MicroPythonFileSystem.py	Sat Jul 27 17:02:01 2019 +0200
+++ b/eric6/MicroPython/MicroPythonFileSystem.py	Sat Jul 27 17:52:00 2019 +0200
@@ -498,6 +498,7 @@
         @return tuple of tuples containing the file system name, the total
             size, the used size and the free size
         @rtype tuple of tuples of (str, int, int, int)
+        @exception IOError raised to indicate an issue with the device
         """
         commands = [
             "import os",
@@ -569,7 +570,7 @@
         """
         commands = [
             "import sys",
-            "res = {}",
+            "res = {}",                             # __IGNORE_WARNING_M613__
             "\n".join([
                 "try:",
                 "    res['name'] = sys.implementation.name",
--- a/eric6/UI/UserInterface.py	Sat Jul 27 17:02:01 2019 +0200
+++ b/eric6/UI/UserInterface.py	Sat Jul 27 17:52:00 2019 +0200
@@ -1267,7 +1267,7 @@
         """
         if self.__layoutType == "Toolboxes":
             for dock in [self.lToolboxDock, self.hToolboxDock,
-                              self.rToolboxDock]:
+                         self.rToolboxDock]:
                 container = dock.widget()
                 index = container.indexOf(widget)
                 if index != -1:

eric ide

mercurial