Carl Friedrich Bolz-Tereick pushed to branch branch/py3.10 at PyPy / pypy


Commits:
ac270e37 by Carl Friedrich Bolz-Tereick at 2023-07-11T14:51:00+02:00
#3961: don't uselessly compile a regex for *every* parsed email message. the
pattern is anyway always the same, apart from a variable prefix. Instead, first
check the prefix with str.startswith, and only if that returns True, match the
rest of the regular expression.

--HG--
branch : py3.10

- - - - -


1 changed file:

- lib-python/3/email/feedparser.py


View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/commit/ac270e3701e29024d4098cd0e674cd1fe30a751f

-- 
View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/commit/ac270e3701e29024d4098cd0e674cd1fe30a751f
You're receiving this email because of your account on foss.heptapod.net.


_______________________________________________
pypy-commit mailing list -- pypy-commit@python.org
To unsubscribe send an email to pypy-commit-le...@python.org
https://mail.python.org/mailman3/lists/pypy-commit.python.org/
Member address: arch...@mail-archive.com

Reply via email to