summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2002-03-11 10:02:18 (GMT)
committerMichael W. Hudson <mwh@python.net>2002-03-11 10:02:18 (GMT)
commit8cdebb2e60f864d0fc3b72dab0a7bb87fd8c4663 (patch)
tree9747bf01edd12731536789159cb6470b90294bd5 /Modules
parent63558c18347d4e1339ca0387c215e542ed89cb87 (diff)
downloadcpython-8cdebb2e60f864d0fc3b72dab0a7bb87fd8c4663.zip
cpython-8cdebb2e60f864d0fc3b72dab0a7bb87fd8c4663.tar.gz
cpython-8cdebb2e60f864d0fc3b72dab0a7bb87fd8c4663.tar.bz2
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.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/cStringIO.c2
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"