Use raw string to fix illegal escape SyntaxError.

This commit is contained in:
Benjamin Peterson 2019-05-31 12:05:02 -07:00
parent eb160b69d3
commit e823d72b2e
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ class PEP(object):
author_list = []
for regex in (angled, paren, simple):
# Watch out for commas separating multiple names.
regex += u'(,\s*)?'
regex += r'(,\s*)?'
for match in re.finditer(regex, data):
# Watch out for suffixes like 'Jr.' when they are comma-separated
# from the name and thus cause issues when *all* names are only