Patchwork D5829: check-code: use raw string

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

Comments

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

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5829?vs=13756&id=13788

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

AFFECTED FILES
  contrib/check-code.py

CHANGE DETAILS




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

Patch

diff --git a/contrib/check-code.py b/contrib/check-code.py
--- a/contrib/check-code.py
+++ b/contrib/check-code.py
@@ -414,7 +414,7 @@ 
 
 txtpats = [
   [
-    ('\s$', 'trailing whitespace'),
+    (r'\s$', 'trailing whitespace'),
     ('.. note::[ \n][^\n]', 'add two newlines after note::')
   ],
   []