[Python-checkins] cpython: Issue #18408: Fix typo in build_node_tree() of the parser module

victor.stinner python-checkins at python.org
Wed Jul 17 01:01:23 CEST 2013


http://hg.python.org/cpython/rev/c8696ee49291
changeset:   84678:c8696ee49291
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed Jul 17 00:13:52 2013 +0200
summary:
  Issue #18408: Fix typo in build_node_tree() of the parser module

Type "o" format of Py_BuildValue() is invalid: it must be "O".

files:
  Modules/parsermodule.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c
--- a/Modules/parsermodule.c
+++ b/Modules/parsermodule.c
@@ -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);

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list