summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-12-19 07:15:26 +0200
committerEzio Melotti <ezio.melotti@gmail.com>2011-12-19 07:15:26 +0200
commitd0ffcd601ecb7d4efd7b3792dafffc3c9229a51d (patch)
tree76a3fce5b9e49c2b96b93c8b58cbe13f53f50629
parent080b6f071f6d9d61bf0c6c783c505aea5dfa6ae6 (diff)
downloadcpython-git-d0ffcd601ecb7d4efd7b3792dafffc3c9229a51d.tar.gz
#3932: suggest passing unicode to HTMLParser.feed().
-rw-r--r--Doc/library/htmlparser.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/htmlparser.rst b/Doc/library/htmlparser.rst
index aa10498042..adbcb38d9c 100644
--- a/Doc/library/htmlparser.rst
+++ b/Doc/library/htmlparser.rst
@@ -64,7 +64,8 @@ An exception is defined as well:
Feed some text to the parser. It is processed insofar as it consists of
complete elements; incomplete data is buffered until more data is fed or
- :meth:`close` is called.
+ :meth:`close` is called. *data* can be either :class:`unicode` or
+ :class:`str`, but passing :class:`unicode` is advised.
.. method:: HTMLParser.close()