]> granicus.if.org Git - python/commitdiff
#3932: suggest passing unicode to HTMLParser.feed().
authorEzio Melotti <ezio.melotti@gmail.com>
Mon, 19 Dec 2011 05:15:26 +0000 (07:15 +0200)
committerEzio Melotti <ezio.melotti@gmail.com>
Mon, 19 Dec 2011 05:15:26 +0000 (07:15 +0200)
Doc/library/htmlparser.rst

index aa10498042b66a52071acb1f5e5f25bbeeb7866e..adbcb38d9cdd50f4ce66cbd59f4e4f6800c8e86e 100644 (file)
@@ -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()