Kaydet (Commit) 3358d589 authored tarafından Motoki Naruse's avatar Motoki Naruse Kaydeden (comit) terryjreedy

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
üst 2d98c535
...@@ -418,7 +418,7 @@ class HTMLParser(_markupbase.ParserBase): ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment