From 5f8d48598263ea24a046fd8539fe33e43f96fb15 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 2 Jan 2014 11:49:27 +0100 Subject: parser: fix usage of Py_BuildValue() to build a parser error Fix typo: "os" format => "Os" --- Modules/parsermodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index e86fe4d..e598046 100644 --- a/Modules/parsermodule.c +++ b/Modules/parsermodule.c @@ -748,7 +748,7 @@ build_node_children(PyObject *tuple, node *root, int *line_num) } } if (!ok) { - PyObject *err = Py_BuildValue("os", elem, + PyObject *err = Py_BuildValue("Os", elem, "Illegal node construct."); PyErr_SetObject(parser_error, err); Py_XDECREF(err); -- cgit v0.12