check-code: use raw string
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 04 Feb 2019 09:38:33 -0800
changeset 41558 7d1798ec92a3
parent 41557 dddf53473315
child 41559 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::')
   ],
   []