From: Ezio Melotti Date: Mon, 19 Dec 2011 05:15:26 +0000 (+0200) Subject: #3932: suggest passing unicode to HTMLParser.feed(). X-Git-Tag: v2.7.3rc1~234 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0ffcd601ecb7d4efd7b3792dafffc3c9229a51d;p=python #3932: suggest passing unicode to HTMLParser.feed(). --- 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()