From: <pj...@us...> - 2009-06-04 07:24:36
|
Revision: 6448 http://jython.svn.sourceforge.net/jython/?rev=6448&view=rev Author: pjenvey Date: 2009-06-04 07:24:35 +0000 (Thu, 04 Jun 2009) Log Message: ----------- emulate CPython flush on closed and unwritable files Modified Paths: -------------- trunk/jython/src/org/python/core/io/FileIO.java Modified: trunk/jython/src/org/python/core/io/FileIO.java =================================================================== --- trunk/jython/src/org/python/core/io/FileIO.java 2009-06-04 02:52:11 UTC (rev 6447) +++ trunk/jython/src/org/python/core/io/FileIO.java 2009-06-04 07:24:35 UTC (rev 6448) @@ -329,6 +329,12 @@ } /** {@inheritDoc} */ + public void flush() { + checkClosed(); + checkWritable(); + } + + /** {@inheritDoc} */ public void close() { if (closed()) { return; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |