Get rid of some Python 2 idiosyncrasies

This commit is contained in:
Dave Halter
2020-07-24 02:09:04 +02:00
parent 561f434f39
commit 7780cc1c1b
4 changed files with 7 additions and 31 deletions
-4
View File
@@ -310,10 +310,6 @@ class _StringComparisonMixin(object):
return self is other
def __ne__(self, other):
"""Python 2 compatibility."""
return not self.__eq__(other)
def __hash__(self):
return hash(self.value)