diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-03-08 17:17:33 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-03-08 17:17:33 (GMT) |
commit | b189b07dcc0bdd344ca5a5e9bff08b168d9dbe37 (patch) | |
tree | 3a84ac7afe1b04e9c91ad339449a0900f69960f7 /Modules | |
parent | 4f8d05495d0ec8bea3354fc6627242bc785ec3db (diff) | |
download | cpython-b189b07dcc0bdd344ca5a5e9bff08b168d9dbe37.zip cpython-b189b07dcc0bdd344ca5a5e9bff08b168d9dbe37.tar.gz cpython-b189b07dcc0bdd344ca5a5e9bff08b168d9dbe37.tar.bz2 |
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.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/cStringIO.c | 2 |
1 files changed, 1 insertions, 1 deletions
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" |