Skip to content

Commit

Permalink
Fix case of requirement line without comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Hildo Guillardi Júnior committed Mar 9, 2021
1 parent 9852ed7 commit e892d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def run(self):
requirements = f.read().splitlines()
# Remove the comments of the line.
for idx, r in enumerate(requirements):
requirements[idx] = re.findall('^(.*)(!?#.*)', r)[0][0].strip()
requirements[idx] = re.findall('^(.*)(!?#.*)*', r)[0][0].strip()
if '' in requirements:
requirements.remove('')

Expand Down

0 comments on commit e892d37

Please sign in to comment.