summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-01-25 01:42:32 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2018-01-25 02:21:53 +0100
commit8d7235f493115a1371e688f0efdd69c1effea307 (patch)
treef43c8c70c5a417f03ebf8f0eb2f0a70ae69e12b3 /tests
parent955ea4e599e39fe3b1f049fe1750fe3c0ad09f5d (diff)
Tighten up regexes
- Match the simpler strchr()y .config parsing done by the C implementation - Spell out \w as [a-zA-Z0-9_]. Easier to verify. - Use ASCII mode for Python 3 to be consistent with Python 2, where it's already the default. \s no longer matches obscure Unicode stuff. This also speeds up regex matching during parsing by about 15% on Python 3, increasing parsing performance by a few %. Looks like there's a tiny improvement for Python 2 as well.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions