Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f1340b commit 2d5914bCopy full SHA for 2d5914b
1 file changed
Modules/posixmodule.c
@@ -2004,8 +2004,13 @@ posix_utime(PyObject *self, PyObject *args)
2004
Py_END_ALLOW_THREADS
2005
#endif /* HAVE_UTIMES */
2006
}
2007
- if (res < 0)
+ if (res < 0) {
2008
+#ifdef Py_WIN_WIDE_FILENAMES
2009
+ if (have_unicode_filename)
2010
+ return posix_error_with_unicode_filename(wpath);
2011
+#endif /* Py_WIN_WIDE_FILENAMES */
2012
return posix_error_with_filename(path);
2013
+ }
2014
Py_INCREF(Py_None);
2015
return Py_None;
2016
#undef UTIME_ARG
0 commit comments