diff options
author | Motoki Naruse <motoki@naru.se> | 2017-06-17 10:15:25 +0900 |
---|---|---|
committer | terryjreedy <tjreedy@udel.edu> | 2017-06-16 21:15:25 -0400 |
commit | 3358d589fb51372a56ddcfffa277855e5661c4c0 (patch) | |
tree | 6a9d1b5bfca4f79fd2dd570ea3a2f5a85a3d80b8 /Lib/html/parser.py | |
parent | 2d98c5354239e600cc4f799feabc9cb44666118e (diff) | |
download | cpython-git-3358d589fb51372a56ddcfffa277855e5661c4c0.tar.gz |
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
Diffstat (limited to 'Lib/html/parser.py')
-rw-r--r-- | Lib/html/parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/html/parser.py b/Lib/html/parser.py index ef869bc72d..de81879a63 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 |