]> granicus.if.org Git - python/commitdiff
Fix SF bug #526518
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 8 Mar 2002 17:17:33 +0000 (17:17 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 8 Mar 2002 17:17:33 +0000 (17:17 +0000)
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

index f85d60ac2b045844de6095d1ee51341a453cb7b8..8c9dab9680d4f744fd0bc78dccfcf9e4481ea7b0 100644 (file)
@@ -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"