eric6/UI/UserInterface.py

changeset 8235
78e6d29eb773
parent 8228
772103b14c18
child 8240
93b8a353c4bf
--- a/eric6/UI/UserInterface.py	Tue Apr 13 18:02:59 2021 +0200
+++ b/eric6/UI/UserInterface.py	Tue Apr 13 19:59:17 2021 +0200
@@ -1403,10 +1403,7 @@
         # flag indicating '--' options was found
         ddseen = False
         
-        if Utilities.isWindowsPlatform():
-            argChars = ['-', '/']
-        else:
-            argChars = ['-']
+        argChars = ['-', '/'] if Utilities.isWindowsPlatform() else ['-']
 
         for arg in args:
             # handle a request to start with last session
@@ -3746,10 +3743,7 @@
         except (ImportError, AttributeError):
             sip_version_str = "sip version not available"
         
-        if sys.maxsize > 2**32:
-            sizeStr = "64-Bit"
-        else:
-            sizeStr = "32-Bit"
+        sizeStr = "64-Bit" if sys.maxsize > 2**32 else "32-Bit"
         
         versionText = self.tr(
             """<h2>Version Numbers</h2>"""
@@ -3851,10 +3845,7 @@
         @param deleteAttachFile flag indicating to delete the file after
             it has been read (boolean)
         """
-        if mode == "feature":
-            address = FeatureAddress
-        else:
-            address = BugAddress
+        address = FeatureAddress if mode == "feature" else BugAddress
         subject = "[eric] "
         if attachFile is not None:
             with open(attachFile, "r", encoding="utf-8") as f:
@@ -6483,11 +6474,8 @@
         
         @param editor editor window
         """
-        if editor:
-            fn = editor.getFileName()
-        else:
-            fn = None
-            
+        fn = editor.getFileName() if editor else None
+        
         if fn:
             dbs = e5App().getObject("DebugServer")
             for language in dbs.getSupportedLanguages():

eric ide

mercurial