def __cmp__(self, other):
        if other.currency == self.currency:
            if self.value < other.value:
                return -1
            elif self.value > other.value:
                return 1
            else:
                return 0
        else:
            raise NotImplemented("Mixed currencies cannot be compared")
dataset/ETHPy150Open saik0/humblebundle-python/humblebundle/models.py/Price.__cmp__/original