Fixed a code style issue. eric7

Sat, 11 Sep 2021 19:40:25 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 11 Sep 2021 19:40:25 +0200
branch
eric7
changeset 8592
ab8580937d4b
parent 8591
7cf4b7bc3d5a
child 8593
1d66b6af60ed

Fixed a code style issue.

eric7/Plugins/UiExtensionPlugins/Translator/Translator.py file | annotate | diff | comparison | revisions
diff -r 7cf4b7bc3d5a -r ab8580937d4b eric7/Plugins/UiExtensionPlugins/Translator/Translator.py
--- a/eric7/Plugins/UiExtensionPlugins/Translator/Translator.py	Sat Sep 11 13:40:06 2021 +0200
+++ b/eric7/Plugins/UiExtensionPlugins/Translator/Translator.py	Sat Sep 11 19:40:25 2021 +0200
@@ -52,10 +52,11 @@
         from .TranslatorWidget import TranslatorWidget
         
         self.__widget = TranslatorWidget(self.__plugin, self)
-        if self.__ui.getLayoutType() == "Sidebars":
-            iconName = "sbTranslator96"
-        else:
-            iconName = "flag-{0}".format(self.__iconSuffix)
+        iconName = (
+            "sbTranslator96"
+            if self.__ui.getLayoutType() == "Sidebars" else
+            "flag-{0}".format(self.__iconSuffix)
+        )
         self.__ui.addSideWidget(
             self.__ui.BottomSide, self.__widget,
             UI.PixmapCache.getIcon(

eric ide

mercurial