Browse Source

Update Beautiful Soup 4.9.2 (r590) → 4.9.3 (r593).

tags/release_0.25.1
JackDandy 5 years ago
parent
commit
13125b3c1e
  1. 3
      CHANGES.md
  2. 2
      lib/bs4_py2/__init__.py
  3. 8
      lib/bs4_py2/element.py
  4. 2
      lib/bs4_py3/__init__.py
  5. 8
      lib/bs4_py3/element.py

3
CHANGES.md

@ -6,7 +6,7 @@
* Change remind user when testing Notifications config / Discord to update URL
* Fix incorrect text for some drop down list items in the apiBuilder view that affected some browsers
* Update attr 20.1.0.dev0 (4bd6827) to 20.2.0 (4f74fba)
* Update Beautiful Soup 4.8.2 (r559) to 4.9.2 (r590)
* Update Beautiful Soup 4.8.2 (r559) to 4.9.3 (r593)
* Update dateutil 2.8.1 (43b7838) to 2.8.1 (c496b4f)
* Change add diskcache_py3 5.0.1 (9670fbb)
* Change add diskcache_py2 4.1.0 (b0451e0)
@ -25,6 +25,7 @@
[develop changelog]
* Update Beautiful Soup 4.9.1 (r585) to 4.9.2 (r590)
* Update Beautiful Soup 4.8.2 (r559) to 4.9.1 (r585)
* Fix update Soupsieve (05086ef) broke MC and TVC browse cards

2
lib/bs4_py2/__init__.py

@ -15,7 +15,7 @@ documentation: http://www.crummy.com/software/BeautifulSoup/bs4/doc/
"""
__author__ = "Leonard Richardson (leonardr@segfault.org)"
__version__ = "4.9.2"
__version__ = "4.9.3"
__copyright__ = "Copyright (c) 2004-2020 Leonard Richardson"
# Use of this source code is governed by the MIT license.
__license__ = "MIT"

8
lib/bs4_py2/element.py

@ -1995,6 +1995,14 @@ class SoupStrainer(object):
if isinstance(markup_name, Tag):
markup = markup_name
markup_attrs = markup
if isinstance(self.name, basestring):
# Optimization for a very common case where the user is
# searching for a tag with one specific name, and we're
# looking at a tag with a different name.
if markup and not markup.prefix and self.name != markup.name:
return False
call_function_with_tag_data = (
isinstance(self.name, Callable)
and not isinstance(markup_name, Tag))

2
lib/bs4_py3/__init__.py

@ -15,7 +15,7 @@ documentation: http://www.crummy.com/software/BeautifulSoup/bs4/doc/
"""
__author__ = "Leonard Richardson (leonardr@segfault.org)"
__version__ = "4.9.2"
__version__ = "4.9.3"
__copyright__ = "Copyright (c) 2004-2020 Leonard Richardson"
# Use of this source code is governed by the MIT license.
__license__ = "MIT"

8
lib/bs4_py3/element.py

@ -1995,6 +1995,14 @@ class SoupStrainer(object):
if isinstance(markup_name, Tag):
markup = markup_name
markup_attrs = markup
if isinstance(self.name, str):
# Optimization for a very common case where the user is
# searching for a tag with one specific name, and we're
# looking at a tag with a different name.
if markup and not markup.prefix and self.name != markup.name:
return False
call_function_with_tag_data = (
isinstance(self.name, Callable)
and not isinstance(markup_name, Tag))

Loading…
Cancel
Save