summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-11-05 11:21:38 +0100
committerVictor Stinner <victor.stinner@gmail.com>2015-11-05 11:21:38 +0100
commitcb099abb93a287d397088d6bd10735e6bc26afa7 (patch)
tree8463ae28027e2c5f9ef27ec65700e908f89ec523 /Python/sysmodule.c
parent39fbaba6d5b35c0b0f1ee26a599e44dfe4bcdd9b (diff)
downloadcpython-cb099abb93a287d397088d6bd10735e6bc26afa7.tar.gz
sysmodule.c: reuse Py_STRINGIFY() macro
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 334f5d0c8e..e0aa233ca9 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -1643,15 +1643,11 @@ make_version_info(void)
/* sys.implementation values */
#define NAME "cpython"
const char *_PySys_ImplName = NAME;
-#define QUOTE(arg) #arg
-#define STRIFY(name) QUOTE(name)
-#define MAJOR STRIFY(PY_MAJOR_VERSION)
-#define MINOR STRIFY(PY_MINOR_VERSION)
+#define MAJOR Py_STRINGIFY(PY_MAJOR_VERSION)
+#define MINOR Py_STRINGIFY(PY_MINOR_VERSION)
#define TAG NAME "-" MAJOR MINOR
const char *_PySys_ImplCacheTag = TAG;
#undef NAME
-#undef QUOTE
-#undef STRIFY
#undef MAJOR
#undef MINOR
#undef TAG