Issue1763263

classification
Title: os.utime(path, None) doesn't work (incl. a patch)
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: pjenvey Nosy List: pekka.klarck, pjenvey
Priority: normal Keywords:

Created on 2007-07-29.21:48:46 by pekka.klarck, last changed 2007-09-24.01:26:06 by pjenvey.

Files
File name Uploaded Description Edit Remove
utime.patch pekka.klarck, 2007-07-29.21:48:46
Messages
msg1793 (view) Author: Pekka Klärck (pekka.klarck) Date: 2007-07-29.21:48:46
os.utime in Jython 2.2rc2 doesn't allow using format os.utime(path, None). This format is supported already by Python 1.6 [1] and also by Python 2.2 [2] and newer.

[1] http://pydoc.org/1.6/os.html
[2] http://pydoc.org/2.2.3/os.html

Adding the support to this format is pretty trivial and it's handled by the attached patch. The patch also adds a docstring (copied from Python with a note that setting atime is not possible) and removes Java 1.2 support code that's not needed anymore.
msg1794 (view) Author: Pekka Klärck (pekka.klarck) Date: 2007-07-30.22:05:02
Ooops, there's a typo on the last line of the docstring: "moditified" -> "modified"

I can make a new patch if needed.
msg1795 (view) Author: Philip Jenvey (pjenvey) Date: 2007-09-24.01:26:06
committed in r3520 and r3522

I only removed the Java 1.2 check on trunk

thanks!
History
Date User Action Args
2007-07-29 21:48:46pekka.klarckcreate