Patchwork D5824: check-commit: use raw string for regular expression

login
register
mail settings
Submitter phabricator
Date Feb. 4, 2019, 11:36 p.m.
Message ID <79a91c0fe2399bebee28390626ff039a@localhost.localdomain>
Download mbox | patch
Permalink /patch/38404/
State Not Applicable
Headers show

Comments

phabricator - Feb. 4, 2019, 11:36 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG45a4789d3ff2: check-commit: use raw string for regular expression (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5824?vs=13751&id=13783

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

AFFECTED FILES
  contrib/check-commit

CHANGE DETAILS




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

Patch

diff --git a/contrib/check-commit b/contrib/check-commit
--- a/contrib/check-commit
+++ b/contrib/check-commit
@@ -47,7 +47,7 @@ 
      "adds a function with foo_bar naming"),
 ]
 
-word = re.compile('\S')
+word = re.compile(r'\S')
 def nonempty(first, second):
     if word.search(first):
         return first