summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 8112e11..55d08f6 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -5652,7 +5652,9 @@ def standard_sc_expr_str(sc):
See expr_str().
"""
if sc.__class__ is Symbol:
- return '"{}"'.format(escape(sc.name)) if sc.is_constant else sc.name
+ if sc.is_constant and sc.name not in ("n", "m", "y"):
+ return '"{}"'.format(escape(sc.name))
+ return sc.name
# Choice
return "<choice {}>".format(sc.name) if sc.name else "<choice>"