eric6/MicroPython/MicrobitDevices.py

changeset 8259
2bbec88047dd
parent 8218
7c09585bd960
diff -r 82b608e352ec -r 2bbec88047dd eric6/MicroPython/MicrobitDevices.py
--- a/eric6/MicroPython/MicrobitDevices.py	Wed Apr 21 17:56:12 2021 +0200
+++ b/eric6/MicroPython/MicrobitDevices.py	Wed Apr 21 19:40:50 2021 +0200
@@ -306,10 +306,11 @@
         if not aw:
             return
         
-        if scriptName:
-            title = self.tr("Save Script as '{0}'").format(scriptName)
-        else:
-            title = self.tr("Save Script")
+        title = (
+            self.tr("Save Script as '{0}'").format(scriptName)
+            if scriptName else
+            self.tr("Save Script")
+        )
         
         if not (aw.isPyFile() or aw.isMicroPythonFile()):
             yes = E5MessageBox.yesNo(

eric ide

mercurial