Permalink
Browse files

Ignore comments in requirements files.

  • Loading branch information...
1 parent dee5593 commit 2207f9a5bd51544e5c22a2f6466287837a02b1cc @ryankask ryankask committed May 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/piplint/__init__.py
View
@@ -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 2207f9a

Please sign in to comment.