src/eric7/MicroPython/UF2FlashDialog.py

branch
eric7
changeset 10373
093dcebe5ecb
parent 10370
d84b074f772c
child 10439
21c28b0f9e41
--- a/src/eric7/MicroPython/UF2FlashDialog.py	Sun Dec 03 16:44:52 2023 +0100
+++ b/src/eric7/MicroPython/UF2FlashDialog.py	Sun Dec 03 19:46:34 2023 +0100
@@ -674,7 +674,7 @@
     if not OSUtilities.isWindowsPlatform():
         userMounts = FileSystemUtilities.getUserMounts()
 
-    boardTypes = [boardType] if boardType else [*SupportedUF2Boards.keys()]
+    boardTypes = [boardType] if boardType else list(SupportedUF2Boards)
     for board in boardTypes:
         for vidpid, volumes in SupportedUF2Boards[board]["volumes"].items():
             for volume, description in volumes:
@@ -782,9 +782,7 @@
         if len(devices) == 0:
             # no device set yet
             devices = [
-                d
-                for d in Devices.getFoundDevices()[0]
-                if d[0] in SupportedUF2Boards
+                d for d in Devices.getFoundDevices()[0] if d[0] in SupportedUF2Boards
             ]
             self.devicesComboBox.addItem("")
             self.devicesComboBox.addItem(self.tr("Manual Select"))

eric ide

mercurial