Skip to content

Commit 74cde5b

Browse files
committed
Fix typo in exception name (SGMLParserError should be SGMLParseError)
found by Neil Norwitz's PyChecker.
1 parent 815bee4 commit 74cde5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/sgmllib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def goahead(self, end):
175175
if rawdata[i-1] != ';': i = i-1
176176
continue
177177
else:
178-
raise SGMLParserError('neither < nor & ??')
178+
raise SGMLParseError('neither < nor & ??')
179179
# We get here only if incomplete matches but
180180
# nothing else
181181
match = incomplete.match(rawdata, i)

0 commit comments

Comments
 (0)