[Python-checkins] CVS: python/dist/src/Modules cStringIO.c,2.32,2.32.6.1
Michael Hudson
mwh@users.sourceforge.net
Mon, 11 Mar 2002 02:02:20 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv1399
Modified Files:
Tag: release22-maint
cStringIO.c
Log Message:
backport jhylton's checkin of
revision 2.33 of cStringIO.c
Fix SF bug #526518
The doc string for cStringIO suggested that str() of a StringIO object
was equivalent to getvalue(). This was never true, so repair the doc
string. (doctest would have helped here.)
Bug fix candidate for any past versions.
Index: cStringIO.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/cStringIO.c,v
retrieving revision 2.32
retrieving revision 2.32.6.1
diff -C2 -d -r2.32 -r2.32.6.1
*** cStringIO.c 8 Dec 2001 18:02:56 -0000 2.32
--- cStringIO.c 11 Mar 2002 10:02:18 -0000 2.32.6.1
***************
*** 68,72 ****
" an_output_stream.write(some_stuff)\n"
" ...\n"
! " value=an_output_stream.getvalue() # str(an_output_stream) works too!\n"
"\n"
" an_input_stream=StringIO(a_string)\n"
--- 68,72 ----
" an_output_stream.write(some_stuff)\n"
" ...\n"
! " value=an_output_stream.getvalue()\n"
"\n"
" an_input_stream=StringIO(a_string)\n"