diff sat/core/i18n.py @ 2624:56f94936df1e

code style reformatting using black
author Goffi <goffi@goffi.org>
date Wed, 27 Jun 2018 20:14:46 +0200
parents 26edcf3a30eb
children 003b8b4b56a7
line wrap: on
line diff
--- a/sat/core/i18n.py	Wed Jun 27 07:51:29 2018 +0200
+++ b/sat/core/i18n.py	Wed Jun 27 20:14:46 2018 +0200
@@ -19,27 +19,31 @@
 
 
 from sat.core.log import getLogger
+
 log = getLogger(__name__)
 
 try:
 
     import gettext
 
-    _ = gettext.translation('sat', 'i18n', fallback=True).ugettext
+    _ = gettext.translation("sat", "i18n", fallback=True).ugettext
     _translators = {None: gettext.NullTranslations()}
 
     def languageSwitch(lang=None):
         if not lang in _translators:
-            _translators[lang] = gettext.translation('sat', languages=[lang], fallback=True)
+            _translators[lang] = gettext.translation(
+                "sat", languages=[lang], fallback=True
+            )
         _translators[lang].install(unicode=True)
 
+
 except ImportError:
 
     log.warning("gettext support disabled")
-    _ = lambda msg: msg # Libervia doesn't support gettext
+    _ = lambda msg: msg  # Libervia doesn't support gettext
+
     def languageSwitch(lang=None):
         pass
 
 
-D_ = lambda msg: msg # used for deferred translations
-
+D_ = lambda msg: msg  # used for deferred translations