diff options
author | Guido van Rossum <guido@python.org> | 2007-07-16 20:46:27 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-07-16 20:46:27 +0000 |
commit | 6c9078fd86354356782bd40783b956c1bab22342 (patch) | |
tree | 2ebd943a24da0ac50fa0244a468c79a011bca4ec /Python/errors.c | |
parent | 8183b5514c9116782155f113f958b3ba97bfbb2c (diff) | |
download | cpython-6c9078fd86354356782bd40783b956c1bab22342.tar.gz |
Three patches by Amaury Forgeot d'Arc; SF patch# 1754484.
Diffstat (limited to 'Python/errors.c')
-rw-r--r-- | Python/errors.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/errors.c b/Python/errors.c index 2a84c8d30d..3770522735 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -333,9 +333,9 @@ PyErr_SetFromErrnoWithFilenameObject(PyObject *exc, PyObject *filenameObject) #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 @@ PyObject *PyErr_SetExcFromWindowsErrWithFilenameObject( 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); |