summaryrefslogtreecommitdiff
path: root/bs4/formatter.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2023-01-25 14:52:31 -0500
committerLeonard Richardson <leonardr@segfault.org>2023-01-25 14:52:31 -0500
commit1f51372069b3cc204ffc43b6ef59a82f4bd32f07 (patch)
tree1a962d0d621730e6764eab329136d758a996e7a6 /bs4/formatter.py
parent9f29d5b62539d8020b3e99e084c52a45996b7403 (diff)
The HTMLFormatter and XMLFormatter constructors no longer return a
value. [bug=1992693]
Diffstat (limited to 'bs4/formatter.py')
-rw-r--r--bs4/formatter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bs4/formatter.py b/bs4/formatter.py
index 65e57b5..83cc1c5 100644
--- a/bs4/formatter.py
+++ b/bs4/formatter.py
@@ -149,14 +149,14 @@ class HTMLFormatter(Formatter):
"""A generic Formatter for HTML."""
REGISTRY = {}
def __init__(self, *args, **kwargs):
- return super(HTMLFormatter, self).__init__(self.HTML, *args, **kwargs)
+ super(HTMLFormatter, self).__init__(self.HTML, *args, **kwargs)
class XMLFormatter(Formatter):
"""A generic Formatter for XML."""
REGISTRY = {}
def __init__(self, *args, **kwargs):
- return super(XMLFormatter, self).__init__(self.XML, *args, **kwargs)
+ super(XMLFormatter, self).__init__(self.XML, *args, **kwargs)
# Set up aliases for the default formatters.