diff -r jython/org/python/core/PyFile.java jython-20010830/org/python/core/PyFile.java 57,60d56 < public void truncate(long position) throws java.io.IOException { < throw new java.io.IOException("file doens't support truncate"); < } < 478,481d473 < public void truncate(long position) throws java.io.IOException { < file.setLength(position); < } < 879,894d870 < public void truncate() { < try { < file.truncate(0); < } catch (java.io.IOException e) { < throw Py.IOError(e); < } < } < < public void truncate(long position) { < try { < file.truncate(position); < } catch (java.io.IOException e) { < throw Py.IOError(e); < } < } <