1
1
mirror of https://git.launchpad.net/beautifulsoup synced 2025-10-06 00:12:49 +02:00

Prep for release.

This commit is contained in:
Leonard Richardson
2012-04-27 10:09:17 -04:00
parent f71ba86ec0
commit 06f15fea89
4 changed files with 10 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
= 4.0.5 (unreleased) =
= 4.0.5 (20120427) =
* Added a new method, wrap(), which wraps an element in a tag.
* Added a new method, wrap(), which wraps an element in a tag. Renamed
replace_with_children() to unwrap().
* Renamed replace_with_children() to unwrap(), which is easier to
understand and also the jQuery name of the function.

View File

@@ -17,7 +17,7 @@ http://www.crummy.com/software/BeautifulSoup/bs4/doc/
"""
__author__ = "Leonard Richardson (leonardr@segfault.org)"
__version__ = "4.0.4"
__version__ = "4.0.5"
__copyright__ = "Copyright (c) 2004-2012 Leonard Richardson"
__license__ = "MIT"

View File

@@ -1898,7 +1898,7 @@ that you can examine it or add it back to another part of the tree.
----------
``PageElement.wrap()`` wraps an element in the tag you specify. It
returns the new wrapper. (New in Beautiful Soup 4.0.5.)
returns the new wrapper::
soup = BeautifulSoup("<p>I wish I was bold.</p>")
soup.p.string.wrap(soup.new_tag("b"))
@@ -1907,6 +1907,8 @@ returns the new wrapper. (New in Beautiful Soup 4.0.5.)
soup.p.wrap(soup.new_tag("div")
# <div><p><b>I wish I was bold.</b></p></div>
This method is new in Beautiful Soup 4.0.5.
``unwrap()``
---------------------------
@@ -1924,6 +1926,8 @@ whatever's inside that tag. It's good for stripping out markup::
Like ``replace_with()``, ``unwrap()`` returns the tag
that was replaced.
In earlier versions of Beautiful Soup, ``unwrap()`` was called
``replace_with_children()`, and that name will still work.
Output
======

View File

@@ -7,7 +7,7 @@ except ImportError:
from distutils.command.build_py import build_py
setup(name="beautifulsoup4",
version = "4.0.4",
version = "4.0.5",
author="Leonard Richardson",
author_email='leonardr@segfault.org',
url="http://www.crummy.com/software/BeautifulSoup/bs4/",