diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-06 17:29:59 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-06 17:29:59 -0500 |
commit | 69f3a88987e6775aa2223138c488f2757b988532 (patch) | |
tree | 156f13d52f510196c76dc14b88dbf0074428347b /doc/source | |
parent | edb1dd5e7f87d65e60d7ce39b7a7f86f84c0a64a (diff) |
Monkeypatch Python 3.2 versions prior to 3.2.3 to solve some major HTMLParser bugs.
Diffstat (limited to 'doc/source')
-rw-r--r-- | doc/source/index.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/source/index.rst b/doc/source/index.rst index e2620dd..1d9d54c 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -1520,8 +1520,8 @@ say. It works just like ``.insert()`` on a Python list:: ``extract()`` ------------- -``PageElement.extract()`` removes a tag or string from the tree, and -returns it:: +``PageElement.extract()`` removes a tag or string from the tree. It +returns the tag or string that was extracted:: markup = '<a href="http://example.com/">I linked to <i>example.com</i></a>' soup = BeautifulSoup(markup) |