diff options
author | Leonard Richardson <leonardr@segfault.org> | 2015-06-28 09:38:50 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2015-06-28 09:38:50 -0400 |
commit | ec60474030e5ae091dc3500312f9447dcc7d56bf (patch) | |
tree | 0beb0cf521c6408240269b87384ddcd2ca93be15 | |
parent | 951eee1144397fd7257fb0e812a62baa8beed24b (diff) |
Reorganized changelog.
-rw-r--r-- | NEWS.txt | 36 | ||||
-rw-r--r-- | bs4/__init__.py | 4 |
2 files changed, 23 insertions, 17 deletions
@@ -1,10 +1,26 @@ = 4.4.0 (Unreleased) = +Especially important changes: + +* Added a warning when you instantiate a BeautifulSoup object without + explicitly naming a parser. [bug=1398866] + * __repr__ now returns an ASCII bytestring in Python 2, and a Unicode string in Python 3, instead of a UTF8-encoded bytestring in both versions. In Python 3, __str__ now returns a Unicode string instead of a bytestring. [bug=1420131] +* The `text` argument to the find_* methods is now called `string`, + which is more accurate. `text` still works, but `string` is the + argument described in the documentation. `text` may eventually + change its meaning, but not for a very long time. [bug=1366856] + +* Started using a standard MIT license. [bug=1294662] + +* Added a Chinese translation of the documentation by Delong .w. + +New features: + * Introduced the select_one() method, which uses a CSS selector but only returns the first match, instead of a list of matches. [bug=1349367] @@ -15,19 +31,15 @@ * You can now create a NavigableString or a subclass just by invoking the constructor. [bug=1294315] -* Started using a standard MIT license. [bug=1294662] - -* Added a Chinese translation of the documentation by Delong .w. - -* The `text` argument to the find_* methods is now called `string`, - which is more accurate. `text` still works, but `string` is the - argument described in the documentation. `text` may eventually - change its meaning, but not for a very long time. [bug=1366856] - * Added an `exclude_encodings` argument to UnicodeDammit and to the Beautiful Soup constructor, which lets you prohibit the detection of an encoding that you know is wrong. [bug=1469408] +* The select() method now supports selector grouping. Patch by + Francisco Canas [bug=1191917] + +Bug fixes: + * Fixed yet another problem that caused the html5lib tree builder to create a disconnected parse tree. [bug=1237763] @@ -40,9 +52,6 @@ * Fixed a bug where Element.extract() could create an infinite loop in the remaining tree. -* The select() method now supports selector grouping. Patch by - Francisco Canas [bug=1191917] - * The select() method can now find tags whose names contain dashes. Patch by Francisco Canas. [bug=1276211] @@ -56,9 +65,6 @@ import the Python 2 edition of Beautiful Soup under Python 3. [bug=1213387] -* Added a warning when you instantiate a BeautifulSoup object without - explicitly naming a parser. [bug=1398866] - * In Python 3.4 and above, set the new convert_charrefs argument to the html.parser constructor to avoid a warning and future failures. Patch by Stefano Revera. [bug=1375721] diff --git a/bs4/__init__.py b/bs4/__init__.py index f24d69c..68e7512 100644 --- a/bs4/__init__.py +++ b/bs4/__init__.py @@ -17,8 +17,8 @@ http://www.crummy.com/software/BeautifulSoup/bs4/doc/ """ __author__ = "Leonard Richardson (leonardr@segfault.org)" -__version__ = "4.3.2" -__copyright__ = "Copyright (c) 2004-2013 Leonard Richardson" +__version__ = "4.3.9b1" +__copyright__ = "Copyright (c) 2004-2015 Leonard Richardson" __license__ = "MIT" __all__ = ['BeautifulSoup'] |