Commit ff17385f authored by Antoine Pitrou's avatar Antoine Pitrou

Merged revisions 87802 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87802 | antoine.pitrou | 2011-01-06 19:25:55 +0100 (jeu., 06 janv. 2011) | 6 lines

  Issue #7858: Raise an error properly when os.utime() fails under Windows
  on an existing file.

  (this does not seem to be easily testable)
........
parent 8ad4cd90
...@@ -27,6 +27,9 @@ Core and Builtins ...@@ -27,6 +27,9 @@ Core and Builtins
Library Library
------- -------
- Issue #7858: Raise an error properly when os.utime() fails under Windows
on an existing file.
- Issue #3839: wsgiref should not override a Content-Length header set by - Issue #3839: wsgiref should not override a Content-Length header set by
the application. Initial patch by Clovis Fabricio. the application. Initial patch by Clovis Fabricio.
......
...@@ -3031,6 +3031,7 @@ posix_utime(PyObject *self, PyObject *args) ...@@ -3031,6 +3031,7 @@ posix_utime(PyObject *self, PyObject *args)
something is wrong with the file, when it also something is wrong with the file, when it also
could be the time stamp that gives a problem. */ could be the time stamp that gives a problem. */
win32_error("utime", NULL); win32_error("utime", NULL);
goto done;
} }
Py_INCREF(Py_None); Py_INCREF(Py_None);
result = Py_None; result = Py_None;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment