Merge pull request #769 from pre-commit/fix_escape_sequences

Fix invalid escape sequences
This commit is contained in:
Anthony Sottile
2018-06-18 07:34:51 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ def broken_deep_listdir(): # pragma: no cover (platform specific)
except OSError:
return True
try:
os.listdir(b'\\\\?\C:' + b'\\' * 300)
os.listdir(b'\\\\?\\C:' + b'\\' * 300)
except TypeError:
return True
except OSError:

View File

@@ -19,7 +19,7 @@ def try_repo_opts(repo, ref=None, **kwargs):
def _get_out(cap_out):
out = cap_out.get().replace('\r\n', '\n')
out = re.sub('\[INFO\].+\n', '', out)
out = re.sub(r'\[INFO\].+\n', '', out)
start, using_config, config, rest = out.split('=' * 79 + '\n')
assert start == ''
assert using_config == 'Using config:\n'