From: <pj...@us...> - 2007-09-24 01:05:07
|
Revision: 3521 http://jython.svn.sourceforge.net/jython/?rev=3521&view=rev Author: pjenvey Date: 2007-09-23 18:05:04 -0700 (Sun, 23 Sep 2007) Log Message: ----------- remove < Java 1.2 check in utime Modified Paths: -------------- trunk/jython/Lib/javaos.py Modified: trunk/jython/Lib/javaos.py =================================================================== --- trunk/jython/Lib/javaos.py 2007-09-24 01:03:52 UTC (rev 3520) +++ trunk/jython/Lib/javaos.py 2007-09-24 01:05:04 UTC (rev 3521) @@ -213,9 +213,8 @@ mtime = times[1] else: mtime = time.time() - # Only the modification time is changed (and only on java2). - if hasattr(File, "setLastModified"): - File(path).setLastModified(long(mtime * 1000.0)) + # Only the modification time is changed + File(path).setLastModified(long(mtime * 1000.0)) class LazyDict( UserDict ): """A lazy-populating User Dictionary. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |