diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-01-17 01:29:01 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-01-17 01:29:01 +0100 |
commit | 3e1fad6913689f1cbb08657ee5f65439a4639303 (patch) | |
tree | 45f7051516a63cca0cfd39ad8b70f0830dc9f3a4 /Python | |
parent | c0083fc47d7a03e2116036af2c3b33ad3d9583f6 (diff) | |
download | cpython-git-3e1fad6913689f1cbb08657ee5f65439a4639303.tar.gz |
Rename _PyArg_ParseStack to _PyArg_ParseStackAndKeywords
Issue #29286.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/clinic/_warnings.c.h | 2 | ||||
-rw-r--r-- | Python/clinic/bltinmodule.c.h | 2 | ||||
-rw-r--r-- | Python/getargs.c | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/Python/clinic/_warnings.c.h b/Python/clinic/_warnings.c.h index db2245cb5b..c15c9bef23 100644 --- a/Python/clinic/_warnings.c.h +++ b/Python/clinic/_warnings.c.h @@ -26,7 +26,7 @@ warnings_warn(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwn Py_ssize_t stacklevel = 1; PyObject *source = Py_None; - if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser, + if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser, &message, &category, &stacklevel, &source)) { goto exit; } diff --git a/Python/clinic/bltinmodule.c.h b/Python/clinic/bltinmodule.c.h index c88deef33f..8d429e27a9 100644 --- a/Python/clinic/bltinmodule.c.h +++ b/Python/clinic/bltinmodule.c.h @@ -168,7 +168,7 @@ builtin_compile(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *k int dont_inherit = 0; int optimize = -1; - if (!_PyArg_ParseStack(args, nargs, kwnames, &_parser, + if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser, &source, PyUnicode_FSDecoder, &filename, &mode, &flags, &dont_inherit, &optimize)) { goto exit; } diff --git a/Python/getargs.c b/Python/getargs.c index f35d59a351..8dd579fe40 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -26,7 +26,7 @@ int _PyArg_VaParseTupleAndKeywordsFast(PyObject *, PyObject *, #ifdef HAVE_DECLSPEC_DLL /* Export functions */ PyAPI_FUNC(int) _PyArg_Parse_SizeT(PyObject *, const char *, ...); -PyAPI_FUNC(int) _PyArg_ParseStack_SizeT(PyObject **args, Py_ssize_t nargs, PyObject *kwnames, +PyAPI_FUNC(int) _PyArg_ParseStackAndKeywords_SizeT(PyObject **args, Py_ssize_t nargs, PyObject *kwnames, struct _PyArg_Parser *parser, ...); PyAPI_FUNC(int) _PyArg_ParseTuple_SizeT(PyObject *, const char *, ...); PyAPI_FUNC(int) _PyArg_ParseTupleAndKeywords_SizeT(PyObject *, PyObject *, @@ -1473,7 +1473,7 @@ _PyArg_ParseTupleAndKeywordsFast_SizeT(PyObject *args, PyObject *keywords, } int -_PyArg_ParseStack(PyObject **args, Py_ssize_t nargs, PyObject *kwnames, +_PyArg_ParseStackAndKeywords(PyObject **args, Py_ssize_t nargs, PyObject *kwnames, struct _PyArg_Parser *parser, ...) { int retval; @@ -1486,7 +1486,7 @@ _PyArg_ParseStack(PyObject **args, Py_ssize_t nargs, PyObject *kwnames, } int -_PyArg_ParseStack_SizeT(PyObject **args, Py_ssize_t nargs, PyObject *kwnames, +_PyArg_ParseStackAndKeywords_SizeT(PyObject **args, Py_ssize_t nargs, PyObject *kwnames, struct _PyArg_Parser *parser, ...) { int retval; |