Merge pull request #348 from TyberiusPrime/master
correctly parse requirements that end in a stray comma
This commit is contained in:
commit
98d0017275
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue