Merge pull request #348 from TyberiusPrime/master

correctly parse requirements that end in a stray comma
This commit is contained in:
DavHau 2021-10-27 22:28:59 +07:00 committed by GitHub
commit 98d0017275
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,6 +130,9 @@ def parse_reqs_line(line):
line = init + ';' + marker
else:
line = line.replace("'", "").replace('"', '')
if line.endswith(','):
line = line[:-1]
match = re.fullmatch(re_reqs, line)
if not match: