summaryrefslogtreecommitdiffstats
path: root/Lib/sgmllib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-04-15 13:01:41 (GMT)
committerGuido van Rossum <guido@python.org>2001-04-15 13:01:41 (GMT)
commit74cde5bb3eea5187b199454ab275fe7cbb6e69b6 (patch)
treeff61c6e158356f34ce6fad694770f588a43a4f56 /Lib/sgmllib.py
parent815bee4cf455983e0b9d6c7ebef442141f792050 (diff)
downloadcpython-74cde5bb3eea5187b199454ab275fe7cbb6e69b6.zip
cpython-74cde5bb3eea5187b199454ab275fe7cbb6e69b6.tar.gz
cpython-74cde5bb3eea5187b199454ab275fe7cbb6e69b6.tar.bz2
Fix typo in exception name (SGMLParserError should be SGMLParseError)
found by Neil Norwitz's PyChecker.
Diffstat (limited to 'Lib/sgmllib.py')
-rw-r--r--Lib/sgmllib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sgmllib.py b/Lib/sgmllib.py
index 2ebe698..5388c07 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)