diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/html/parser.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/html/parser.py b/Lib/html/parser.py index 58f6bb3..bef0f4f 100644 --- a/Lib/html/parser.py +++ b/Lib/html/parser.py @@ -328,13 +328,6 @@ class HTMLParser(_markupbase.ParserBase): end = rawdata[k:endpos].strip() if end not in (">", "/>"): - lineno, offset = self.getpos() - if "\n" in self.__starttag_text: - lineno = lineno + self.__starttag_text.count("\n") - offset = len(self.__starttag_text) \ - - self.__starttag_text.rfind("\n") - else: - offset = offset + len(self.__starttag_text) self.handle_data(rawdata[i:endpos]) return endpos if end.endswith('/>'): |