def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def __repr__(self):
        return "<differencematcher m1=%r, m2=%r>" % (self._m1, self._m2)