summaryrefslogtreecommitdiff
path: root/py/qstrdefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/qstrdefs.h')
-rw-r--r--py/qstrdefs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h
index a60905812..5c8b13b47 100644
--- a/py/qstrdefs.h
+++ b/py/qstrdefs.h
@@ -37,8 +37,13 @@ Q()
Q(*)
Q(_)
Q(/)
+#if MICROPY_PY_BUILTINS_STR_OP_MODULO
Q(%#o)
Q(%#x)
+#else
+Q({:#o})
+Q({:#x})
+#endif
Q({:#b})
Q( )
Q(\n)