fix StringIO constructor docs #5452

This commit is contained in:
Benjamin Peterson 2009-03-09 02:02:23 +00:00
parent ba3fcf17c8
commit aa1c8d8899
1 changed files with 4 additions and 4 deletions

View File

@ -637,13 +637,13 @@ Text I/O
Whether line buffering is enabled. Whether line buffering is enabled.
.. class:: StringIO([initial_value[, encoding[, errors[, newline]]]]) .. class:: StringIO([initial_value[, newline]])
An in-memory stream for text. It inherits :class:`TextIOWrapper`. An in-memory stream for text. It inherits :class:`TextIOWrapper`.
Create a new StringIO stream with an initial value, encoding, error handling, The initial value of the buffer (an empty string by default) can be set by
and newline setting. See :class:`TextIOWrapper`\'s constructor for more providing *initial_value*. The *newline* argument works like that of
information. :class:`TextIOWrapper`. The default is to do no newline translation.
:class:`StringIO` provides this method in addition to those from :class:`StringIO` provides this method in addition to those from
:class:`TextIOWrapper` and its parents: :class:`TextIOWrapper` and its parents: