mirror of https://github.com/python/cpython.git
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
|
@ -418,7 +418,7 @@ def parse_endtag(self, i):
|
|||
self.handle_data(rawdata[i:gtpos])
|
||||
return gtpos
|
||||
|
||||
self.handle_endtag(elem.lower())
|
||||
self.handle_endtag(elem)
|
||||
self.clear_cdata_mode()
|
||||
return gtpos
|
||||
|
||||
|
|
Loading…
Reference in New Issue