diff options
author | Leonard Richardson <leonardr@segfault.org> | 2023-04-07 10:31:56 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2023-04-07 10:31:56 -0400 |
commit | 67336dd4cd781a7d27716a5bcaae939e80a7bc24 (patch) | |
tree | 0a345409186c2e6cb0ab312e18feb4bbb16c206b /bs4/__init__.py | |
parent | fb8179d217dfb11e81c28076fc3bf14bdf9a0038 (diff) |
Fixed an unhandled exception in BeautifulSoup.decode_contents
and methods that call it. [bug=2015545]
Diffstat (limited to 'bs4/__init__.py')
-rw-r--r-- | bs4/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bs4/__init__.py b/bs4/__init__.py index 18d380b..3d2ab09 100644 --- a/bs4/__init__.py +++ b/bs4/__init__.py @@ -15,7 +15,7 @@ documentation: http://www.crummy.com/software/BeautifulSoup/bs4/doc/ """ __author__ = "Leonard Richardson (leonardr@segfault.org)" -__version__ = "4.12.1" +__version__ = "4.12.2" __copyright__ = "Copyright (c) 2004-2023 Leonard Richardson" # Use of this source code is governed by the MIT license. __license__ = "MIT" @@ -776,7 +776,7 @@ class BeautifulSoup(Tag): def decode(self, pretty_print=False, eventual_encoding=DEFAULT_OUTPUT_ENCODING, - formatter="minimal"): + formatter="minimal", iterator=None): """Returns a string or Unicode representation of the parse tree as an HTML or XML document. @@ -803,7 +803,7 @@ class BeautifulSoup(Tag): else: indent_level = 0 return prefix + super(BeautifulSoup, self).decode( - indent_level, eventual_encoding, formatter) + indent_level, eventual_encoding, formatter, iterator) # Aliases to make it easier to get started quickly, e.g. 'from bs4 import _soup' _s = BeautifulSoup |