D5824: check-commit: use raw string for regular expression
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Mon Feb 4 18:36:43 EST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG45a4789d3ff2: check-commit: use raw string for regular expression (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5824?vs=13751&id=13783
REVISION DETAIL
https://phab.mercurial-scm.org/D5824
AFFECTED FILES
contrib/check-commit
CHANGE DETAILS
diff --git a/contrib/check-commit b/contrib/check-commit
--- a/contrib/check-commit
+++ b/contrib/check-commit
@@ -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
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list