summaryrefslogtreecommitdiff
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-02-06 10:41:46 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2017-02-06 10:41:46 +0200
commit68a001dd59e2f0c00cb703200e801d0e6be63546 (patch)
tree78bbb59644b34629569a2f2ccaa2ce40dd48dbb8 /Python/getargs.c
parent6aee6fbce8f3d7b8c8eae5d8f88fc2282698a6dc (diff)
downloadcpython-git-68a001dd59e2f0c00cb703200e801d0e6be63546.tar.gz
Issue #29460: _PyArg_NoKeywords(), _PyArg_NoStackKeywords() and
_PyArg_NoPositional() now are macros.
Diffstat (limited to 'Python/getargs.c')
-rw-r--r--Python/getargs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index 952a662ecf..8cb672d6ab 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -2446,6 +2446,10 @@ _PyArg_UnpackStack(PyObject **args, Py_ssize_t nargs, const char *name,
}
+#undef _PyArg_NoKeywords
+#undef _PyArg_NoStackKeywords
+#undef _PyArg_NoPositional
+
/* For type constructors that don't take keyword args
*
* Sets a TypeError and returns 0 if the args/kwargs is