From b53e4c349db9bff9833b950adfbca36298cc980e Mon Sep 17 00:00:00 2001 From: rchen152 Date: Wed, 21 Sep 2016 11:55:02 -0700 Subject: [PATCH] Fix HTMLParser.HTMLParser, HTMLParseError. (#565) Signed-off-by: Rebecca Chen --- stdlib/2.7/HTMLParser.pyi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/stdlib/2.7/HTMLParser.pyi b/stdlib/2.7/HTMLParser.pyi index ae6c3099a..c6b8a96d9 100644 --- a/stdlib/2.7/HTMLParser.pyi +++ b/stdlib/2.7/HTMLParser.pyi @@ -2,7 +2,7 @@ from typing import List, Tuple, AnyStr from markupbase import ParserBase class HTMLParser(ParserBase): - def __init__(self, *args, convert_charrefs: bool) -> None: ... + def __init__(self) -> None: ... def feed(self, feed: AnyStr) -> None: ... def close(self) -> None: ... def reset(self) -> None: ... @@ -25,4 +25,7 @@ class HTMLParser(ParserBase): def unescape(self, s: AnyStr) -> AnyStr: ... -class HTMLParseError(Exception): ... +class HTMLParseError(Exception): + msg = ... # type: str + lineno = ... # type: int + offset = ... # type: int \ No newline at end of file