check-code: use raw string
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 04 Feb 2019 09:38:33 -0800
changeset 41544 7d1798ec92a3
parent 41543 dddf53473315
child 41545 fbb43514f342
check-code: use raw string This avoids a SyntaxWarning in Python 3.8. Differential Revision: https://phab.mercurial-scm.org/D5829
contrib/check-code.py
--- a/contrib/check-code.py	Mon Feb 04 09:37:09 2019 -0800
+++ b/contrib/check-code.py	Mon Feb 04 09:38:33 2019 -0800
@@ -414,7 +414,7 @@
 
 txtpats = [
   [
-    ('\s$', 'trailing whitespace'),
+    (r'\s$', 'trailing whitespace'),
     ('.. note::[ \n][^\n]', 'add two newlines after note::')
   ],
   []