Use raw string to fix illegal escape SyntaxError.
This commit is contained in:
parent
eb160b69d3
commit
e823d72b2e
|
@ -256,7 +256,7 @@ class PEP(object):
|
||||||
author_list = []
|
author_list = []
|
||||||
for regex in (angled, paren, simple):
|
for regex in (angled, paren, simple):
|
||||||
# Watch out for commas separating multiple names.
|
# Watch out for commas separating multiple names.
|
||||||
regex += u'(,\s*)?'
|
regex += r'(,\s*)?'
|
||||||
for match in re.finditer(regex, data):
|
for match in re.finditer(regex, data):
|
||||||
# Watch out for suffixes like 'Jr.' when they are comma-separated
|
# Watch out for suffixes like 'Jr.' when they are comma-separated
|
||||||
# from the name and thus cause issues when *all* names are only
|
# from the name and thus cause issues when *all* names are only
|
||||||
|
|
Loading…
Reference in New Issue