changeset 41544:7d1798ec92a3

check-code: use raw string This avoids a SyntaxWarning in Python 3.8. Differential Revision: https://phab.mercurial-scm.org/D5829
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 04 Feb 2019 09:38:33 -0800
parents dddf53473315
children fbb43514f342
files contrib/check-code.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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::')
   ],
   []