def normalize(self):
        if self.start == self.end:
            return Term(self.fieldname, self.start, boost=self.boost)
        else:
            return TermRange(self.fieldname, self.start, self.end,
                             self.startexcl, self.endexcl,
                             boost=self.boost)
dataset/ETHPy150Open dokipen/whoosh/src/whoosh/query.py/TermRange.normalize/original