]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in exception name (SGMLParserError should be SGMLParseError)
authorGuido van Rossum <guido@python.org>
Sun, 15 Apr 2001 13:01:41 +0000 (13:01 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 15 Apr 2001 13:01:41 +0000 (13:01 +0000)
found by Neil Norwitz's PyChecker.

Lib/sgmllib.py

index 2ebe6981f5d0be984cb543bd23fa1f2c10de549a..5388c07b20d539450622e65fa286daac1bfe0d84 100644 (file)
@@ -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)