Fix invalid string escape sequences.

This commit is contained in:
Matt Clay 2017-11-21 10:24:37 -08:00
commit 9735a70059
49 changed files with 81 additions and 81 deletions

View file

@ -95,8 +95,8 @@ def main():
# Try to spot where this has happened and fix it.
for fragment in params['name']:
if (
re.search('^\d+(?:\.\d+)*', fragment)
and packages and re.search('@[^,]*$', packages[-1])
re.search(r'^\d+(?:\.\d+)*', fragment)
and packages and re.search(r'@[^,]*$', packages[-1])
):
packages[-1] += ',' + fragment
else: