diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-01-03 21:36:13 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-01-03 21:36:13 -0500 |
commit | 692fe5201d5dec15a3598578a6f403e67802de0d (patch) | |
tree | 7ab5c761163b5fae77304ff8b6769afd8a9d84e1 /src/beautifulsoup/README.txt | |
parent | ea57d5122f1df133927e266e5fabbf0ef767f460 (diff) |
Brought in a treebuilder from html5lib and got it to work.
Diffstat (limited to 'src/beautifulsoup/README.txt')
-rw-r--r-- | src/beautifulsoup/README.txt | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/src/beautifulsoup/README.txt b/src/beautifulsoup/README.txt index d011072..ff83212 100644 --- a/src/beautifulsoup/README.txt +++ b/src/beautifulsoup/README.txt @@ -4,16 +4,19 @@ Introduction >>> from beautifulsoup import BeautifulSoup >>> soup = BeautifulSoup("<p>Some<b>bad<i>HTML") >>> print soup.prettify() - <p> - Some - <b> - bad - <i> - HTML - </i> - </b> - </p> - + <html> + <body> + <p> + Some + <b> + bad + <i> + HTML + </i> + </b> + </p> + </body> + </html> >>> soup.find(text="bad") u'bad' @@ -21,13 +24,3 @@ Introduction <i>HTML</i> -Python 3 -======== - -The canonical version of Beautiful Soup is the Python 2 version. You -can generate the Python 3 version by running to3.sh, or by doing what -to3.sh does: run 2to3 on BeautifulSoup.py and BeautifulSoupTests.py, -then applying the appropriate .3.diff file to each generated script. - -The testall.sh script tests both the Python 2 version and a freshly -generated Python 3 version. |