Merge pull request #8076 from AccelerationNet/develop

pip freeze output has comments sometimes: ignore them
This commit is contained in:
Mike Place 2013-10-24 09:17:41 -07:00
commit 9153576eb0

View File

@ -767,8 +767,9 @@ def list_(prefix=None,
raise CommandExecutionError(result['stderr']) raise CommandExecutionError(result['stderr'])
for line in result['stdout'].splitlines(): for line in result['stdout'].splitlines():
if line.startswith('-f'): if line.startswith('-f') or line.startswith('#'):
# ignore -f line as it contains --find-links directory # ignore -f line as it contains --find-links directory
# ignore comment lines
continue continue
elif line.startswith('-e'): elif line.startswith('-e'):
line = line.split('-e ')[1] line = line.split('-e ')[1]