# HG changeset patch # Parent 5a4276fdf4b73e46e9b51ae0adce33743cbb6fa1 diff -r 5a4276fdf4b7 -r 10ddce96d90d Modules/posixmodule.c --- a/Modules/posixmodule.c Thu May 03 18:29:02 2012 +0100 +++ b/Modules/posixmodule.c Fri May 04 01:01:45 2012 +0100 @@ -3758,7 +3758,7 @@ ua.path_format = 'U'; ua.path = &upath; - if (!utime_read_time_arguments(&ua)) { + if (utime_read_time_arguments(&ua)) { wchar_t *wpath = PyUnicode_AsUnicode(upath); if (wpath == NULL) return NULL; @@ -3772,6 +3772,9 @@ } else { const char *apath; + + if (PyErr_ExceptionMatches(PyExc_RuntimeError)) + return NULL; /* Drop the argument parsing error as narrow strings are also valid. */ PyErr_Clear();