Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6684bdf

Browse files
committed
Issue #18408: Fix typo in build_node_tree() of the parser module
Type "o" format of Py_BuildValue() is invalid: it must be "O".
1 parent 3997cfd commit 6684bdf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/parsermodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ build_node_tree(PyObject *tuple)
899899
* The tuple is simple, but it doesn't start with a start symbol.
900900
* Raise an exception now and be done with it.
901901
*/
902-
tuple = Py_BuildValue("os", tuple,
902+
tuple = Py_BuildValue("Os", tuple,
903903
"Illegal syntax-tree; cannot start with terminal symbol.");
904904
PyErr_SetObject(parser_error, tuple);
905905
Py_XDECREF(tuple);

0 commit comments

Comments
 (0)