python-cloudkittyclient/cloudkittyclient/apiclient
gecong1973 a070f5b16c 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: Id2d32eedddbbbb91c6da6e36f12515972aa9e5a5
2016-11-23 17:09:15 +08:00
..
__init__.py move old oslo-incubator code out of openstack/common 2016-10-31 11:15:10 -04:00
auth.py move old oslo-incubator code out of openstack/common 2016-10-31 11:15:10 -04:00
base.py Add __ne__ built-in function 2016-11-23 17:09:15 +08:00
client.py move old oslo-incubator code out of openstack/common 2016-10-31 11:15:10 -04:00
exceptions.py move old oslo-incubator code out of openstack/common 2016-10-31 11:15:10 -04:00
fake_client.py Add __ne__ built-in function 2016-11-23 17:09:15 +08:00
utils.py move old oslo-incubator code out of openstack/common 2016-10-31 11:15:10 -04:00