D6202: setup: use raw string for regular expression
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Fri Apr 5 01:21:59 UTC 2019
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Otherwise Python 3.8 complains about the backslash.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D6202
AFFECTED FILES
setup.py
CHANGE DETAILS
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -796,7 +796,7 @@
# This logic is duplicated in doc/Makefile.
sources = {f for f in os.listdir('mercurial/help')
- if re.search('[0-9]\.txt$', f)}
+ if re.search(r'[0-9]\.txt$', f)}
# common.txt is a one-off.
gentxt('common')
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list