Permalink
Browse files

bpo-30629: Remove second call of str.lower() in html.parser.parse_end…

…tag. (#2099)

elem is the result of .lower() 6 lines above the handle_endtag call.
Patch by Motoki Naruse
  • Loading branch information...
narusemotoki authored and terryjreedy committed Jun 17, 2017
1 parent 2d98c53 commit 3358d589fb51372a56ddcfffa277855e5661c4c0
Showing with 1 addition and 1 deletion.
  1. +1 −1 Lib/html/parser.py
View
@@ -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

0 comments on commit 3358d58

Please sign in to comment.