mirror of
https://github.com/davidhalter/parso.git
synced 2026-04-26 09:26:01 +08:00
Get rid of some Python 2 idiosyncrasies
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user