# HG changeset patch # User Gregory Szorc # Date 1549301479 28800 # Node ID 45a4789d3ff24bda79b3479cc38917d13173e73a # Parent b5642239fb320072330c0fad7d232d718c6023b6 check-commit: use raw string for regular expression Avoids SyntaxWarning on Python 3.8. Differential Revision: https://phab.mercurial-scm.org/D5824 diff -r b5642239fb32 -r 45a4789d3ff2 contrib/check-commit --- 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