[Python-checkins] cpython (2.7): #3932: suggest passing unicode to HTMLParser.feed().

ezio.melotti python-checkins at python.org
Mon Dec 19 06:17:28 CET 2011


http://hg.python.org/cpython/rev/978f45013c34
changeset: 74067:978f45013c34
branch: 2.7
parent: 74064:88aacd3541ae
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Mon Dec 19 07:15:26 2011 +0200
summary:
 #3932: suggest passing unicode to HTMLParser.feed().
files:
 Doc/library/htmlparser.rst | 3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Doc/library/htmlparser.rst b/Doc/library/htmlparser.rst
--- a/Doc/library/htmlparser.rst
+++ b/Doc/library/htmlparser.rst
@@ -64,7 +64,8 @@
 
 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()
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /