mirror of
https://github.com/python/cpython.git
synced 2025-08-18 07:41:05 +00:00
#3932: suggest passing unicode to HTMLParser.feed().
This commit is contained in:
parent
080b6f071f
commit
d0ffcd601e
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue