From: Guido van Rossum Date: Sun, 15 Apr 2001 13:01:41 +0000 (+0000) Subject: Fix typo in exception name (SGMLParserError should be SGMLParseError) X-Git-Tag: v2.1c2~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=74cde5bb3eea5187b199454ab275fe7cbb6e69b6;p=thirdparty%2FPython%2Fcpython.git Fix typo in exception name (SGMLParserError should be SGMLParseError) found by Neil Norwitz's PyChecker. --- diff --git a/Lib/sgmllib.py b/Lib/sgmllib.py index 2ebe6981f5d0..5388c07b20d5 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)