Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfb1df3 commit 562c0d7Copy full SHA for 562c0d7
1 file changed
Lib/html/parser.py
@@ -328,13 +328,6 @@ def parse_starttag(self, i):
328
329
end = rawdata[k:endpos].strip()
330
if end not in (">", "/>"):
331
- lineno, offset = self.getpos()
332
- if "\n" in self.__starttag_text:
333
- lineno = lineno + self.__starttag_text.count("\n")
334
- offset = len(self.__starttag_text) \
335
- - self.__starttag_text.rfind("\n")
336
- else:
337
- offset = offset + len(self.__starttag_text)
338
self.handle_data(rawdata[i:endpos])
339
return endpos
340
if end.endswith('/>'):
0 commit comments