Fix typo in exception name (SGMLParserError should be SGMLParseError)
found by Neil Norwitz's PyChecker.
This commit is contained in:
parent
815bee4cf4
commit
74cde5bb3e
|
@ -175,7 +175,7 @@ class SGMLParser:
|
||||||
if rawdata[i-1] != ';': i = i-1
|
if rawdata[i-1] != ';': i = i-1
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
raise SGMLParserError('neither < nor & ??')
|
raise SGMLParseError('neither < nor & ??')
|
||||||
# We get here only if incomplete matches but
|
# We get here only if incomplete matches but
|
||||||
# nothing else
|
# nothing else
|
||||||
match = incomplete.match(rawdata, i)
|
match = incomplete.match(rawdata, i)
|
||||||
|
|
Loading…
Reference in New Issue