Skip to content

Loading…

Ignore comments in requirements files. #2

Merged
merged 1 commit into from

2 participants

@ryankask

Hi David. Thanks for another interesting app.

We sometimes use comments in our requirements files. This little patch handles them.

@dcramer dcramer merged commit 2818158 into dcramer:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 4, 2012
  1. @ryankask
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/piplint/__init__.py
View
2 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))
Something went wrong with that request. Please try again.