From e823d72b2eb3befa0b3ddc335a30f0ff8b4a57e4 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 31 May 2019 12:05:02 -0700 Subject: [PATCH] Use raw string to fix illegal escape SyntaxError. --- pep0/pep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pep0/pep.py b/pep0/pep.py index 6d1d727a1..e01518df5 100644 --- a/pep0/pep.py +++ b/pep0/pep.py @@ -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