From 74cde5bb3eea5187b199454ab275fe7cbb6e69b6 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 15 Apr 2001 13:01:41 +0000 Subject: [PATCH] Fix typo in exception name (SGMLParserError should be SGMLParseError) found by Neil Norwitz's PyChecker. --- Lib/sgmllib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/sgmllib.py b/Lib/sgmllib.py index 2ebe6981f5..5388c07b20 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) -- 2.49.0