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)