summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-07-16 22:13:52 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-07-16 22:13:52 (GMT)
commit6684bdf73dfb53d666ce9609cb4ecad3f020d006 (patch)
tree2291b13d25e9f846d4ad4d9bc2a1e481ada98a90 /Modules
parent3997cfdb7fa75fece43288e89e80b4eaaae7be0a (diff)
downloadcpython-6684bdf73dfb53d666ce9609cb4ecad3f020d006.zip
cpython-6684bdf73dfb53d666ce9609cb4ecad3f020d006.tar.gz
cpython-6684bdf73dfb53d666ce9609cb4ecad3f020d006.tar.bz2
Issue #18408: Fix typo in build_node_tree() of the parser module
Type "o" format of Py_BuildValue() is invalid: it must be "O".
Diffstat (limited to 'Modules')
-rw-r--r--Modules/parsermodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c
index e7fd839..7a6e455 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);