diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-09-23 19:45:38 -0700 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-09-23 19:45:38 -0700 |
commit | cfd5ac06c0f7bceb0a47bff922dcea99ba48d0a2 (patch) | |
tree | 6a7f3e2104e744a9339c377a89bb14cdd21587b0 /sphinx/domains/cpp.py | |
parent | ff8df59ac1f2a725ec9f6ebcb862de35487c8e25 (diff) | |
download | sphinx-git-cfd5ac06c0f7bceb0a47bff922dcea99ba48d0a2.tar.gz |
Remove unnecessary __ne__ definitions
In Python 3, __ne__ defaults to the inverse of __eq__.
From https://docs.python.org/3/reference/datamodel.html#object.__ne__
> By default, __ne__() delegates to __eq__() and inverts the result
> unless it is NotImplemented.
Diffstat (limited to 'sphinx/domains/cpp.py')
-rw-r--r-- | sphinx/domains/cpp.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py index 190f95bfc..64db2ce9b 100644 --- a/sphinx/domains/cpp.py +++ b/sphinx/domains/cpp.py @@ -611,10 +611,6 @@ class ASTBase(UnicodeMixin): return False return True - def __ne__(self, other): - # type: (Any) -> bool - return not self.__eq__(other) - __hash__ = None # type: Callable[[], int] def clone(self): |