changeset 41553:45a4789d3ff2

check-commit: use raw string for regular expression Avoids SyntaxWarning on Python 3.8. Differential Revision: https://phab.mercurial-scm.org/D5824
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 04 Feb 2019 09:31:19 -0800
parents b5642239fb32
children 17a6e063c886
files contrib/check-commit
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/check-commit	Mon Feb 04 09:13:05 2019 -0800
+++ b/contrib/check-commit	Mon Feb 04 09:31:19 2019 -0800
@@ -47,7 +47,7 @@
      "adds a function with foo_bar naming"),
 ]
 
-word = re.compile('\S')
+word = re.compile(r'\S')
 def nonempty(first, second):
     if word.search(first):
         return first