mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-30629: Remove second call of str.lower() in html.parser.parse_endtag. (#2099)
elem is the result of .lower() 6 lines above the handle_endtag call. Patch by Motoki Naruse
This commit is contained in:
parent
2d98c53542
commit
3358d589fb
1 changed files with 1 additions and 1 deletions
|
@ -418,7 +418,7 @@ class HTMLParser(_markupbase.ParserBase):
|
||||||
self.handle_data(rawdata[i:gtpos])
|
self.handle_data(rawdata[i:gtpos])
|
||||||
return gtpos
|
return gtpos
|
||||||
|
|
||||||
self.handle_endtag(elem.lower())
|
self.handle_endtag(elem)
|
||||||
self.clear_cdata_mode()
|
self.clear_cdata_mode()
|
||||||
return gtpos
|
return gtpos
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue