diff options
author | Mark Hammond <mhammond@skippinet.com.au> | 2002-10-03 07:24:48 (GMT) |
---|---|---|
committer | Mark Hammond <mhammond@skippinet.com.au> | 2002-10-03 07:24:48 (GMT) |
commit | d3890360694d4ec5f77350610b117a327b4e5209 (patch) | |
tree | 24e892c07df84d9277d916e969f0ce244a248b4d /Modules | |
parent | c2e85bd4e20dc3b5bc446a705a46397c799f56c0 (diff) | |
download | cpython-d3890360694d4ec5f77350610b117a327b4e5209.zip cpython-d3890360694d4ec5f77350610b117a327b4e5209.tar.gz cpython-d3890360694d4ec5f77350610b117a327b4e5209.tar.bz2 |
Trivial fix to the pep277 checkin: ensure that exceptions always have a filename attribute (previously did only when string filenames were passed, but not when unicode)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 494ca61..ab18cbb 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -560,7 +560,7 @@ posix_1str(PyObject *args, char *format, int (*func)(const char*), res = (*wfunc)(PyUnicode_AS_UNICODE(po)); Py_END_ALLOW_THREADS if (res < 0) - return posix_error(); + return posix_error_with_unicode_filename(PyUnicode_AS_UNICODE(po)); Py_INCREF(Py_None); return Py_None; } |