diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-08 15:28:00 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-08 15:28:00 +0200 |
| commit | 96403a3f261ed200fd1229bb114b0bac815d8762 (patch) | |
| tree | 6b6fda9f815a2a7db231017474a528fb83a9290e | |
| parent | d60e22ebcd32bc8b231c125fef7e74435214cc1e (diff) | |
Move _expr_to_str() to after its helper functions.
| -rw-r--r-- | kconfiglib.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 850827d..4b1497b 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -1896,10 +1896,6 @@ def _intersperse(lst, op): return res -def _expr_to_str(expr): - s = "".join(_expr_to_str_rec(expr)) - return s - def _sym_str_string(sym_or_str): if isinstance(sym_or_str, str): return '"{0}"'.format(sym_or_str) @@ -1933,6 +1929,10 @@ def _expr_to_str_rec(expr): op_to_str[expr[0]], _sym_str_string(expr[2])] +def _expr_to_str(expr): + s = "".join(_expr_to_str_rec(expr)) + return s + # Tokens (T_AND, T_OR, T_NOT, T_OPEN_PAREN, T_CLOSE_PAREN, |
