diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2009-04-10 11:45:04 -0400 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2009-04-10 11:45:04 -0400 |
commit | e341013e9b4654a0c93b1fd9bbb797066e55c78b (patch) | |
tree | 3a287f616138bd472fa79c7d7950c3ae7acfa401 /src/beautifulsoup/README.txt | |
parent | e2cdc424ee48a38a6217f3eb0ca6adf513694a84 (diff) |
Hooked up the test suite.
Diffstat (limited to 'src/beautifulsoup/README.txt')
-rw-r--r-- | src/beautifulsoup/README.txt | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/beautifulsoup/README.txt b/src/beautifulsoup/README.txt new file mode 100644 index 0000000..d011072 --- /dev/null +++ b/src/beautifulsoup/README.txt @@ -0,0 +1,33 @@ +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> + + >>> soup.find(text="bad") + u'bad' + + >>> soup.i + <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. |