# HG changeset patch # User Sylvain Thénault # Date 1260348748 -3600 # Node ID 0555f170c4d1d7acabd826da4f8b33562717b4fd # Parent cf7d6211d957c591775c99e0cbeab00a6d1b07e1 __cmp__ should *NOT* return False when different diff -r cf7d6211d957 -r 0555f170c4d1 schema.py --- a/schema.py Tue Dec 08 19:25:52 2009 +0100 +++ b/schema.py Wed Dec 09 09:52:28 2009 +0100 @@ -726,7 +726,7 @@ def __cmp__(self, other): if hasattr(other, 'expression'): return cmp(other.expression, self.expression) - return False + return -1 def __deepcopy__(self, memo): return self.__class__(self.expression, self.mainvars)