This is an archive of the discontinued Mercurial Phabricator instance.

py3: use .+ instead of .* in regexp pattern
ClosedPublic

Authored by indygreg on Oct 12 2018, 4:09 AM.

Details

Summary

Python 3.7 changed the behavior of re.sub(). See
https://bugs.python.org/issue33585.

The new code should work on old and new Pythons.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Oct 12 2018, 4:09 AM
This revision was automatically updated to reflect the committed changes.