Fix invalid escape sequences

This commit is contained in:
Anthony Sottile 2018-06-17 23:51:03 -07:00
parent a12feebf4b
commit 37c94bbe71
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'