Patchwork D6202: setup: use raw string for regular expression

login
register
mail settings
Submitter phabricator
Date April 5, 2019, 11:57 a.m.
Message ID <f3857d73c728e356baba52b9a7596e0c@localhost.localdomain>
Download mbox | patch
Permalink /patch/39496/
State Not Applicable
Headers show

Comments

phabricator - April 5, 2019, 11:57 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGfecbd93a5f08: setup: use raw string for regular expression (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6202?vs=14661&id=14667

REVISION DETAIL
  https://phab.mercurial-scm.org/D6202

AFFECTED FILES
  setup.py

CHANGE DETAILS




To: indygreg, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

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')