From 58c65e020530ac1ffc0d3a5c327832ee0c5b0727 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sun, 23 Jun 2019 02:23:11 +0200 Subject: Make REL_TO_STR public Generally useful, and not likely to need any internal hackery. --- kconfiglib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kconfiglib.py b/kconfiglib.py index e901d15..b0a578e 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -5900,7 +5900,7 @@ def expr_str(expr, sc_expr_str_fn=standard_sc_expr_str): # # Relation operands are always symbols (quoted strings are constant # symbols) - return "{} {} {}".format(sc_expr_str_fn(expr[1]), _REL_TO_STR[expr[0]], + return "{} {} {}".format(sc_expr_str_fn(expr[1]), REL_TO_STR[expr[0]], sc_expr_str_fn(expr[2])) @@ -6779,7 +6779,7 @@ LESS_EQUAL = _T_LESS_EQUAL GREATER = _T_GREATER GREATER_EQUAL = _T_GREATER_EQUAL -_REL_TO_STR = { +REL_TO_STR = { EQUAL: "=", UNEQUAL: "!=", LESS: "<", -- cgit v1.2.3