From: Victor Stinner Date: Tue, 16 Jul 2013 22:13:52 +0000 (+0200) Subject: Issue #18408: Fix typo in build_node_tree() of the parser module X-Git-Tag: v3.4.0a1~179 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6684bdf73dfb53d666ce9609cb4ecad3f020d006;p=python Issue #18408: Fix typo in build_node_tree() of the parser module Type "o" format of Py_BuildValue() is invalid: it must be "O". --- diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index e7fd8390f0..7a6e455207 100644 --- a/Modules/parsermodule.c +++ b/Modules/parsermodule.c @@ -899,7 +899,7 @@ build_node_tree(PyObject *tuple) * The tuple is simple, but it doesn't start with a start symbol. * Raise an exception now and be done with it. */ - tuple = Py_BuildValue("os", tuple, + tuple = Py_BuildValue("Os", tuple, "Illegal syntax-tree; cannot start with terminal symbol."); PyErr_SetObject(parser_error, tuple); Py_XDECREF(tuple);