From 9f370bad91d80570a57156f53c6a9efc918ff90f Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Mon, 20 May 2013 09:40:13 -0400 Subject: html5lib now supports Python 3. Fixed some Python 2-specific code in the html5lib test suite. [bug=1181624] --- doc/source/index.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/source') diff --git a/doc/source/index.rst b/doc/source/index.rst index 5d4c0fe..e254855 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -239,10 +239,10 @@ you might install lxml with one of these commands: :kbd:`$ pip install lxml` -If you're using Python 2, another alternative is the pure-Python -`html5lib parser `_, which parses -HTML the way a web browser does. Depending on your setup, you might -install html5lib with one of these commands: +Another alternative is the pure-Python `html5lib parser +`_, which parses HTML the way a +web browser does. Depending on your setup, you might install html5lib +with one of these commands: :kbd:`$ apt-get install python-html5lib` @@ -270,7 +270,7 @@ This table summarizes the advantages and disadvantages of each parser library: | html5lib | ``BeautifulSoup(markup, "html5lib")`` | * Extremely lenient | * Very slow | | | | * Parses pages the same way a | * External Python | | | | web browser does | dependency | -| | | * Creates valid HTML5 | * Python 2 only | +| | | * Creates valid HTML5 | | +----------------------+--------------------------------------------+--------------------------------+--------------------------+ If you can, I recommend you install and use lxml for speed. If you're -- cgit v1.2.3