eric6/eric6_uipreviewer.py

changeset 8234
fcb6b4b96274
parent 8143
2c730d5fd177
--- a/eric6/eric6_uipreviewer.py	Tue Apr 13 17:49:05 2021 +0200
+++ b/eric6/eric6_uipreviewer.py	Tue Apr 13 18:02:59 2021 +0200
@@ -46,12 +46,9 @@
     """
     from Tools.UIPreviewer import UIPreviewer
     
-    if len(argv) > 1:
-        fn = argv[1]
-    else:
-        fn = None
+    fn = argv[1] if len(argv) > 1 else None
+    previewer = UIPreviewer(fn, None, 'UIPreviewer')
     
-    previewer = UIPreviewer(fn, None, 'UIPreviewer')
     return previewer
 
 

eric ide

mercurial