[Python-checkins] cpython (3.3): parser: fix usage of Py_BuildValue() to build a parser error
victor.stinner
python-checkins at python.org
Thu Jan 2 11:51:33 CET 2014
http://hg.python.org/cpython/rev/91cb83f895cf
changeset: 88247:91cb83f895cf
branch: 3.3
parent: 88245:6a1a1cf5a01b
user: Victor Stinner <victor.stinner at gmail.com>
date: Thu Jan 02 11:49:27 2014 +0100
summary:
parser: fix usage of Py_BuildValue() to build a parser error
Fix typo: "os" format => "Os"
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
@@ -748,7 +748,7 @@
}
}
if (!ok) {
- PyObject *err = Py_BuildValue("os", elem,
+ PyObject *err = Py_BuildValue("Os", elem,
"Illegal node construct.");
PyErr_SetObject(parser_error, err);
Py_XDECREF(err);
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list