# HG changeset patch # User Gregory Szorc # Date 1549301913 28800 # Node ID 7d1798ec92a317b0ea0c88c81b1fcb365c86feaa # Parent dddf534733150e7f523fbad357dde05151f90338 check-code: use raw string This avoids a SyntaxWarning in Python 3.8. Differential Revision: https://phab.mercurial-scm.org/D5829 diff -r dddf53473315 -r 7d1798ec92a3 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::') ], []