Commit 758eba50 authored by Lennart Regebro's avatar Lennart Regebro

Apparently a __ne__ method is necessary, at least under Python 2.4, or you...

Apparently a __ne__ method is necessary, at least under Python 2.4, or you risk having both Distr1 == Distr2 be True, while Distr1 != Distr2 is also True.

--HG--
branch : distribute
extra : rebase_source : 3128c7105c4fdabd1bfceb105ca57cfb371eacec
parent a5bc17cc
......@@ -2064,6 +2064,8 @@ class Distribution(object):
# It's not a Distribution, so they are not equal
return False
return self.hashcmp == other.hashcmp
def __ne__(self, other):
return not self == other
# These properties have to be lazy so that we don't have to load any
# metadata until/unless it's actually needed. (i.e., some distributions
......
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