Skip to content

Commit bf561c3

Browse files
committed
bpo-31844: Remove _markupbase.ParserBase.error()
1 parent 4e11c46 commit bf561c3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Lib/_markupbase.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ def __init__(self):
2929
raise RuntimeError(
3030
"_markupbase.ParserBase must be subclassed")
3131

32-
def error(self, message):
33-
raise NotImplementedError(
34-
"subclasses of ParserBase must override error()")
35-
3632
def reset(self):
3733
self.lineno = 1
3834
self.offset = 0
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Remove ``ParserBase.error()`` method from the private and undocumented
2+
``_markupbase`` module. :class:`html.parser.HTMLParser` is the only
3+
subclass of ``ParserBase`` and its ``error()`` implementation was deprecated
4+
in Python 3.4 and removed in Python 3.5.

0 commit comments

Comments
 (0)