Fixed some code style issues. micropython

Fri, 02 Aug 2019 19:52:11 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 02 Aug 2019 19:52:11 +0200
branch
micropython
changeset 7115
fe89c98430b6
parent 7114
f416440c8be1
child 7116
233b6e62ca2b

Fixed some code style issues.

eric6/MicroPython/EspDevices.py file | annotate | diff | comparison | revisions
eric6/MicroPython/EspFirmwareSelectionDialog.py file | annotate | diff | comparison | revisions
eric6/MicroPython/MicroPythonCommandsInterface.py file | annotate | diff | comparison | revisions
--- a/eric6/MicroPython/EspDevices.py	Fri Aug 02 19:21:03 2019 +0200
+++ b/eric6/MicroPython/EspDevices.py	Fri Aug 02 19:52:11 2019 +0200
@@ -155,6 +155,8 @@
     def __flashMicroPython(self):
         """
         Private slot to flash a MicroPython firmware to the device.
+        
+        @exception ValueError raised to indicate an unsupported chip type
         """
         from .EspFirmwareSelectionDialog import EspFirmwareSelectionDialog
         dlg = EspFirmwareSelectionDialog()
--- a/eric6/MicroPython/EspFirmwareSelectionDialog.py	Fri Aug 02 19:21:03 2019 +0200
+++ b/eric6/MicroPython/EspFirmwareSelectionDialog.py	Fri Aug 02 19:52:11 2019 +0200
@@ -74,7 +74,7 @@
         """
         Private slot to handle the selection of a chip type.
         
-        @param chip selected chip type 
+        @param chip selected chip type
         @type str
         """
         self.__updateOkButton()
--- a/eric6/MicroPython/MicroPythonCommandsInterface.py	Fri Aug 02 19:21:03 2019 +0200
+++ b/eric6/MicroPython/MicroPythonCommandsInterface.py	Fri Aug 02 19:52:11 2019 +0200
@@ -590,7 +590,7 @@
                 "            u.write(result)",
                 "    f.close()",
             ]),
-            "send_data()", 
+            "send_data()",
         ]
         out, err = self.execute(commands)
         if err:
@@ -775,8 +775,8 @@
             "\n".join([
                 "try:",
                 "    print(__time_.strftime('%Y-%m-%d %H:%M:%S',"
+                # __IGNORE_WARNING_M601__
                 " __time_.localtime()))",
-                # __IGNORE_WARNING_M601__
                 "except AttributeError:",
                 "    tm = __time_.localtime()",
                 "    print('{0:04d}-{1:02d}-{2:02d} {3:02d}:{4:02d}:{5:02d}'"

eric ide

mercurial