From: <zy...@us...> - 2008-07-29 22:33:59
|
Revision: 5020 http://jython.svn.sourceforge.net/jython/?rev=5020&view=rev Author: zyasoft Date: 2008-07-29 22:33:56 +0000 (Tue, 29 Jul 2008) Log Message: ----------- cStringIO.tell needs to return an int for it to be used by __len__ (perhaps that should be relaxed instead?). Found by testing against PyAMF which uses cStringIO as a backing store for its BufferedByteStream objs. Modified Paths: -------------- branches/asm/src/org/python/modules/cStringIO.java Modified: branches/asm/src/org/python/modules/cStringIO.java =================================================================== --- branches/asm/src/org/python/modules/cStringIO.java 2008-07-29 20:29:08 UTC (rev 5019) +++ branches/asm/src/org/python/modules/cStringIO.java 2008-07-29 22:33:56 UTC (rev 5020) @@ -160,7 +160,7 @@ * Return the file position. * @returns the position in the file. */ - public long tell() { + public int tell() { _complain_ifclosed(); return pos; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |