D4971: py3: use .+ instead of .* in regexp pattern
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Fri Oct 12 08:09:58 UTC 2018
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION 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.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D4971
AFFECTED FILES
tests/test-hgweb-commands.t
CHANGE DETAILS
diff --git a/tests/test-hgweb-commands.t b/tests/test-hgweb-commands.t
--- a/tests/test-hgweb-commands.t
+++ b/tests/test-hgweb-commands.t
@@ -36,7 +36,7 @@
> stable.width = 3
> stable.color = FF0000
> [websub]
- > append = s|(.*)|\1(websub)|
+ > append = s|(.+)|\1(websub)|
> EOF
$ hg serve --config server.uncompressed=False -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list