diff --git a/Lib/sgmllib.py b/Lib/sgmllib.py index 2ebe6981f5d..5388c07b20d 100644 --- a/Lib/sgmllib.py +++ b/Lib/sgmllib.py @@ -175,7 +175,7 @@ class SGMLParser: if rawdata[i-1] != ';': i = i-1 continue else: - raise SGMLParserError('neither < nor & ??') + raise SGMLParseError('neither < nor & ??') # We get here only if incomplete matches but # nothing else match = incomplete.match(rawdata, i)