changeset 84678:c8696ee49291

Issue #18408: Fix typo in build_node_tree() of the parser module Type "o" format of Py_BuildValue() is invalid: it must be "O".
author Victor Stinner <victor.stinner@gmail.com>
date Wed, 17 Jul 2013 00:13:52 +0200
parents ffd3c6ee2a3a
children cf8f42eadbd0
files Modules/parsermodule.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Modules/parsermodule.c	Tue Jul 16 22:51:21 2013 +0200
+++ b/Modules/parsermodule.c	Wed Jul 17 00:13:52 2013 +0200
@@ -899,7 +899,7 @@
          *  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);