setup: use raw string for regular expression
authorGregory Szorc <gregory.szorc@gmail.com>
Thu, 04 Apr 2019 18:01:48 -0700
changeset 42065 fecbd93a5f08
parent 42064 0e9066db5e44
child 42066 65ed223619ec
setup: use raw string for regular expression Otherwise Python 3.8 complains about the backslash. Differential Revision: https://phab.mercurial-scm.org/D6202
setup.py
--- a/setup.py	Thu Apr 04 18:01:02 2019 -0700
+++ b/setup.py	Thu Apr 04 18:01:48 2019 -0700
@@ -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')