commit | e85da7aa4f575e9925afafdb332b17e085c4aea1 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Thu Jan 06 18:25:55 2011 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Thu Jan 06 18:25:55 2011 +0000 |
tree | 651ce4291e462d432d921dc2d94521519b3f68bd | |
parent | b715fac819fadf56dc8ae0a7769e20ec053baa6d [diff] [blame] |
Issue #7858: Raise an error properly when os.utime() fails under Windows on an existing file. (this does not seem to be easily testable)
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 0cd6340..a37efca 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c
@@ -3256,6 +3256,7 @@ something is wrong with the file, when it also could be the time stamp that gives a problem. */ win32_error("utime", NULL); + goto done; } Py_INCREF(Py_None); result = Py_None;