# HG changeset patch # User Gregory Szorc # Date 2019-04-05 01:01:48 # Node ID fecbd93a5f0847092f1b69d74f95a14b6c8d83d2 # Parent 0e9066db5e4439945e4796f19b99e585e8b4deaa setup: use raw string for regular expression Otherwise Python 3.8 complains about the backslash. Differential Revision: https://phab.mercurial-scm.org/D6202 diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -796,7 +796,7 @@ class hgbuilddoc(Command): # 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')