Skip to content

Commit

Permalink
ignore commented part of requirements entries
Browse files Browse the repository at this point in the history
  • Loading branch information
emilecaron committed May 15, 2017
1 parent b206a10 commit a7e1254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upgrade_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def main():
try:
with io.open('requirements.txt') as f:
print('Reading requirements...')
requirements = [r.strip() for r in f.readlines()]
requirements = [r.split('#', 1)[0].strip() for r in f.readlines()]
except:
print('Error: No requirements.txt found')
return
Expand Down

0 comments on commit a7e1254

Please sign in to comment.