correctly parse "pkg_name===version" from pip freeze

This commit is contained in:
velom 2017-03-15 14:02:46 +03:00
parent ee7f3b1200
commit 3fae91d879

View File

@ -1082,6 +1082,9 @@ def list_(prefix=None,
elif line.startswith('-e'):
line = line.split('-e ')[1]
version_, name = line.split('#egg=')
elif len(line.split('===')) >= 2:
name = line.split('===')[0]
version_ = line.split('===')[1]
elif len(line.split('==')) >= 2:
name = line.split('==')[0]
version_ = line.split('==')[1]