summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/btpyparse.py2
-rw-r--r--pyparsing.py3
2 files changed, 0 insertions, 5 deletions
diff --git a/examples/btpyparse.py b/examples/btpyparse.py
index 4fbbac8..1d8992b 100644
--- a/examples/btpyparse.py
+++ b/examples/btpyparse.py
@@ -22,8 +22,6 @@ class Macro(object):
return 'Macro("%s")' % self.name
def __eq__(self, other):
return self.name == other.name
- def __ne__(self, other):
- return self.name != other.name
# Character literals
diff --git a/pyparsing.py b/pyparsing.py
index 48720f0..f4f0735 100644
--- a/pyparsing.py
+++ b/pyparsing.py
@@ -2385,9 +2385,6 @@ class ParserElement(object):
return vars(self) == vars(other)
return False
- def __ne__(self, other):
- return not (self == other)
-
def __hash__(self):
return id(self)