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:
Motoki Naruse 2017-06-17 10:15:25 +09:00 committed by terryjreedy
parent 2d98c53542
commit 3358d589fb
1 changed files with 1 additions and 1 deletions

View File

@ -418,7 +418,7 @@ class HTMLParser(_markupbase.ParserBase):
self.handle_data(rawdata[i:gtpos])
return gtpos
self.handle_endtag(elem.lower())
self.handle_endtag(elem)
self.clear_cdata_mode()
return gtpos