Skip to content

Commit b189b07

Browse files
committed
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.
1 parent 4f8d054 commit b189b07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/cStringIO.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static char cStringIO_module_documentation[] =
6767
" an_output_stream=StringIO()\n"
6868
" an_output_stream.write(some_stuff)\n"
6969
" ...\n"
70-
" value=an_output_stream.getvalue() # str(an_output_stream) works too!\n"
70+
" value=an_output_stream.getvalue()\n"
7171
"\n"
7272
" an_input_stream=StringIO(a_string)\n"
7373
" spam=an_input_stream.readline()\n"

0 commit comments

Comments
 (0)