[New-bugs-announce] [issue30629] lower() is called twice
成瀬基樹
report at bugs.python.org
Sun Jun 11 02:36:19 EDT 2017
New submission from 成瀬基樹:
https://github.com/python/cpython/blob/master/Lib/html/parser.py#L415
elem is already lowercase string but call lower() for handle_endtag().
elem = match.group(1).lower() # script or style
if self.cdata_elem is not None:
if elem != self.cdata_elem:
self.handle_data(rawdata[i:gtpos])
return gtpos
self.handle_endtag(elem.lower())
----------
components: Library (Lib)
messages: 295689
nosy: Motoki
priority: normal
severity: normal
status: open
title: lower() is called twice
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30629>
_______________________________________
More information about the New-bugs-announce
mailing list