D6202: setup: use raw string for regular expression

2019-04-05 Thread indygreg (Gregory Szorc)
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=14667

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, pulkit
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D6202: setup: use raw string for regular expression

2019-04-04 Thread indygreg (Gregory Szorc)
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
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel