Files
keystoneauth/keystoneauth1/tests/unit
howardlee 7666acbb1e Add __ne__ built-in function
In Python 3 __ne__ by default delegates to __eq__ and inverts the
result, but in Python 2 they urge you to define __ne__ when you define
__eq__ for it to work properly [1]. There are no implied relationships
among the comparison operators. The truth of x==y does not imply that
x!=y is false. Accordingly, when defining __eq__(), one should also
define __ne__() so that the operators will behave as expected.

[1]https://docs.python.org/2/reference/datamodel.html#object.__ne__

Change-Id: I6ad4b07911f6c8236dfcd048aceebd44cd760fe2
2017-01-06 14:32:41 +00:00
..
2016-08-04 11:15:51 -05:00
2017-01-06 14:32:41 +00:00
2017-01-06 14:32:41 +00:00