[meld] conf: Remove some lambda assignments



commit ad933fd7afb5e77cacf94ace760f0dd3ea22455c
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Mon Dec 18 07:27:06 2017 +1000

    conf: Remove some lambda assignments

 meld/conf.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/meld/conf.py b/meld/conf.py
index ada0dd6f..3548fbff 100644
--- a/meld/conf.py
+++ b/meld/conf.py
@@ -13,9 +13,14 @@ UNINSTALLED = False
 UNINSTALLED_SCHEMA = False
 PYTHON_REQUIREMENT_TUPLE = (3, 3)
 
+
 # Installed from main script
-_ = lambda x: x
-ngettext = lambda x, *args: x
+def no_translation(gettext_string, *args):
+    return gettext_string
+
+
+_ = no_translation
+ngettext = no_translation
 
 
 def frozen():


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]