From b189b07dcc0bdd344ca5a5e9bff08b168d9dbe37 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Fri, 8 Mar 2002 17:17:33 +0000 Subject: 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. --- Modules/cStringIO.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/cStringIO.c b/Modules/cStringIO.c index f85d60a..8c9dab9 100644 --- a/Modules/cStringIO.c +++ b/Modules/cStringIO.c @@ -67,7 +67,7 @@ static char cStringIO_module_documentation[] = " an_output_stream=StringIO()\n" " an_output_stream.write(some_stuff)\n" " ...\n" -" value=an_output_stream.getvalue() # str(an_output_stream) works too!\n" +" value=an_output_stream.getvalue()\n" "\n" " an_input_stream=StringIO(a_string)\n" " spam=an_input_stream.readline()\n" -- cgit v0.12