[meld] conf: Remove some lambda assignments
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] conf: Remove some lambda assignments
- Date: Sun, 31 Dec 2017 20:15:00 +0000 (UTC)
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]