Commits

Michał Górny committed 00f6b68

Don't use special __ne__ in StringifiedComparisons.

Comments (0)

Files changed (1)

 	__metaclass__ = ABCMeta
 ''')
 
-class StringifiedComparisons(object):
+class FillMissingNotEqual(object):
+	"""
+	A base class filling '!=' using '=='.
+	"""
+
+	def __ne__(self, other):
+		return not self == other
+
+class StringifiedComparisons(FillMissingNotEqual):
 	"""
 	A base class with '==', '!=' and hashing methods set to use the object
 	stringification.
 	def __eq__(self, other):
 		return str(self) == str(other)
 
-	def __ne__(self, other):
-		return str(self) != str(other)
-
-class FillMissingNotEqual(object):
-	"""
-	A base class filling '!=' using '=='.
-	"""
-
-	def __ne__(self, other):
-		return not self == other
-
 class FillMissingComparisons(FillMissingNotEqual):
 	"""
 	A base class filling '!=', '>', '<=' and '>=' comparators with '<' and