Permalink
Browse files

Merge pull request #2 from ryankask/handle-comments

Ignore comments in requirements files.
  • Loading branch information...
2 parents dee5593 + 2207f9a commit 2818158d7a130252d08138e4bf48f7d3fbb263ac @dcramer committed May 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/piplint/__init__.py
@@ -59,7 +59,7 @@ def valid_version(version, compare, r_version):
with open(fname) as fp:
for line in fp:
line = line.strip()
- if not line or line.startswith('-'):
+ if not line or line.startswith('-') or line.startswith('#'):
continue
listed_reqs.append(parse_package_line(line))

0 comments on commit 2818158

Please sign in to comment.