mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Merge pull request #769 from pre-commit/fix_escape_sequences
Fix invalid escape sequences
This commit is contained in:
commit
8f2c3cfea7
2 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue