eric7/MicroPython/EspBackupRestoreFirmwareDialog.py

branch
eric7
changeset 8955
202286fb4574
parent 8945
b6be65111565
--- a/eric7/MicroPython/EspBackupRestoreFirmwareDialog.py	Mon Feb 21 17:39:06 2022 +0100
+++ b/eric7/MicroPython/EspBackupRestoreFirmwareDialog.py	Mon Feb 21 17:40:01 2022 +0100
@@ -186,10 +186,11 @@
             firmware file
         @rtype tuple of (str, str, str, str, str)
         """
-        if self.__isBackupMode:
-            flashSize = self.sizeComboBox.currentData()
-        else:
-            flashSize = self.sizeComboBox.currentText().replace(" ", "")
+        flashSize = (
+            self.sizeComboBox.currentData()
+            if self.__isBackupMode else
+            self.sizeComboBox.currentText().replace(" ", "")
+        )
         
         return (
             self.espComboBox.currentData(),

eric ide

mercurial