[issue30629] lower() is called twice

2017-06-19 Thread

Changes by 成瀬基樹 <mot...@naru.se>:


--
pull_requests: +2332

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30629>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30629] lower() is called twice

2017-06-19 Thread

成瀬基樹 added the comment:

It will be highlight of my programmer life. Thank you. That pull request is 
just the beginning, not the last.

--

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30629>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30629] lower() is called twice

2017-06-11 Thread

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 <rep...@bugs.python.org>
<http://bugs.python.org/issue30629>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com