eric6/MicroPython/MicroPythonWidget.py

changeset 8234
fcb6b4b96274
parent 8218
7c09585bd960
child 8259
2bbec88047dd
--- a/eric6/MicroPython/MicroPythonWidget.py	Tue Apr 13 17:49:05 2021 +0200
+++ b/eric6/MicroPython/MicroPythonWidget.py	Tue Apr 13 18:02:59 2021 +0200
@@ -1328,10 +1328,7 @@
                 downloadMenu = None
         
         # populate the super menu
-        if self.__device:
-            hasTime = self.__device.hasTimeCommands()
-        else:
-            hasTime = False
+        hasTime = self.__device.hasTimeCommands() if self.__device else False
         
         act = self.__superMenu.addAction(
             self.tr("Show Version"), self.__showDeviceVersion)

eric ide

mercurial