Mercurial > cpython-lru_cache-weakref
diff Python/errors.c @ 42291:3772103200ec
Three patches by Amaury Forgeot d'Arc; SF patch# 1754484.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 16 Jul 2007 20:46:27 +0000 |
| parents | bbc094c328ef |
| children | 0fcc18aba385 |
line wrap: on
line diff
--- a/Python/errors.c Mon Jul 16 19:50:03 2007 +0000 +++ b/Python/errors.c Mon Jul 16 20:46:27 2007 +0000 @@ -333,9 +333,9 @@ #endif /* Unix/Windows */ #endif /* PLAN 9*/ if (filenameObject != NULL) - v = Py_BuildValue("(isO)", i, s, filenameObject); + v = Py_BuildValue("(iUO)", i, s, filenameObject); else - v = Py_BuildValue("(is)", i, s); + v = Py_BuildValue("(iU)", i, s); if (v != NULL) { PyErr_SetObject(exc, v); Py_DECREF(v); @@ -413,9 +413,9 @@ s[--len] = '\0'; } if (filenameObject != NULL) - v = Py_BuildValue("(isO)", err, s, filenameObject); + v = Py_BuildValue("(iUO)", err, s, filenameObject); else - v = Py_BuildValue("(is)", err, s); + v = Py_BuildValue("(iU)", err, s); if (v != NULL) { PyErr_SetObject(exc, v); Py_DECREF(v);
