Commit df021ad3 authored by Guillaume Vandevelde's avatar Guillaume Vandevelde
Browse files

[doctestutils] Fix some flake8 errors on escape sequence

--HG--
branch : 0.1
parent 2f8229c68e19
......@@ -52,10 +52,10 @@ def _parse_webtest_testresponse(string):
break
else:
raise ParseError('not a webtest.TestResponse string')
if not re.match('Response: \d{3} \w+', status):
if not re.match(r'Response: \d{3} \w+', status):
raise ParseError('not a webtest.TestResponse string')
headers = []
while re.match('[a-zA-Z\-]+: [^\n]+\n', rest):
while re.match(r'[a-zA-Z\-]+: [^\n]+\n', rest):
header, rest = rest.split('\n', 1)
name, value = header.split(':', 1)
headers.append((name.strip(), value.strip()))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment