Comment 33 for bug 1586268

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-smaugclient (master)

Submitter: Jenkins
Branch: master

commit 7b16de4908371cad5c1544551132eac34758315f
Author: yuyafei <email address hidden>
Date: Tue Jul 5 15:37:56 2016 +0800

    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.

    Change-Id: Iae22095146e64081f362601665284b43d0056f48
    Closes-Bug: #1586268