Mercurial > cpython-lru_cache-weakref
diff Modules/_elementtree.c @ 38885:f19e877281e4 legacy-trunk
Upgrade pyexpat to expat 2.0.0 (http://python.org/sf/1462338).
| author | Trent Mick <trentm@activestate.com> |
|---|---|
| date | Mon, 19 Jun 2006 23:21:25 +0000 |
| parents | 1a11a4a49fb8 |
| children | e11caad7e029 |
line wrap: on
line diff
--- a/Modules/_elementtree.c Mon Jun 19 22:49:36 2006 +0000 +++ b/Modules/_elementtree.c Mon Jun 19 23:21:25 2006 +0000 @@ -1989,7 +1989,7 @@ Py_XDECREF(res); } else { PyErr_Format( - PyExc_SyntaxError, "undefined entity &%s;: line %d, column %d", + PyExc_SyntaxError, "undefined entity &%s;: line %ld, column %ld", PyString_AS_STRING(key), EXPAT(GetErrorLineNumber)(self->parser), EXPAT(GetErrorColumnNumber)(self->parser) @@ -2350,7 +2350,7 @@ if (!ok) { PyErr_Format( - PyExc_SyntaxError, "%s: line %d, column %d", + PyExc_SyntaxError, "%s: line %ld, column %ld", EXPAT(ErrorString)(EXPAT(GetErrorCode)(self->parser)), EXPAT(GetErrorLineNumber)(self->parser), EXPAT(GetErrorColumnNumber)(self->parser)
