diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2019-06-23 02:23:11 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2019-06-23 02:52:26 +0200 |
| commit | 58c65e020530ac1ffc0d3a5c327832ee0c5b0727 (patch) | |
| tree | 7db144052dc9b58fb359002497751d74e4e6992b /kconfiglib.py | |
| parent | 7b97da6821a45ce34e731df68980dea0983cf18c (diff) | |
Make REL_TO_STR public
Generally useful, and not likely to need any internal hackery.
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 4 |
1 files 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: "<", |
