1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Fix `pip list` when there is an invalid PEP 440 version installed

This commit is contained in:
Donald Stufft 2014-12-20 15:50:25 -05:00
parent 5addd1b7bf
commit 6cab71f422

View file

@ -253,7 +253,7 @@ class FrozenRequirement(object):
editable = False
req = dist.as_requirement()
specs = req.specs
assert len(specs) == 1 and specs[0][0] == '=='
assert len(specs) == 1 and specs[0][0] in ["==", "==="]
version = specs[0][1]
ver_match = cls._rev_re.search(version)
date_match = cls._date_re.search(version)