diff --git a/pre_commit/commands/run.py b/pre_commit/commands/run.py index d8b5aeae..5afdcd1d 100644 --- a/pre_commit/commands/run.py +++ b/pre_commit/commands/run.py @@ -112,7 +112,7 @@ class Classifier: # surround filenames containing whitespace with quotes for f in names: - if re.search(r"\s", f): + if re.search(r'\s', f): f = '"' + f + '"' return tuple(names)