diff options
author | Motoki Naruse <motoki@naru.se> | 2017-06-17 01:15:25 (GMT) |
---|---|---|
committer | terryjreedy <tjreedy@udel.edu> | 2017-06-17 01:15:25 (GMT) |
commit | 3358d589fb51372a56ddcfffa277855e5661c4c0 (patch) | |
tree | 6a9d1b5bfca4f79fd2dd570ea3a2f5a85a3d80b8 | |
parent | 2d98c5354239e600cc4f799feabc9cb44666118e (diff) | |
download | cpython-3358d589fb51372a56ddcfffa277855e5661c4c0.zip cpython-3358d589fb51372a56ddcfffa277855e5661c4c0.tar.gz cpython-3358d589fb51372a56ddcfffa277855e5661c4c0.tar.bz2 |
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
-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 ef869bc..de81879 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 |