From 3358d589fb51372a56ddcfffa277855e5661c4c0 Mon Sep 17 00:00:00 2001 From: Motoki Naruse Date: Sat, 17 Jun 2017 10:15:25 +0900 Subject: [PATCH] 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 --- Lib/html/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/html/parser.py b/Lib/html/parser.py index ef869bc72db..de81879a631 100644 --- a/Lib/html/parser.py +++ b/Lib/html/parser.py @@ -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