Commit 4a4ca5ae authored by MinRK's avatar MinRK

ensure py_version and platform are str in hashcmp

avoids unorderable None, str when sorting dists on Python 3
parent 0e0db040
......@@ -2448,8 +2448,8 @@ class Distribution(object):
self.precedence,
self.key,
_remove_md5_fragment(self.location),
self.py_version,
self.platform,
self.py_version or '',
self.platform or '',
)
def __hash__(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment