

def normalize(self):
    if (not self.words):
        return NullQuery
    if (len(self.words) == 1):
        return Term(self.fieldname, self.words[0])
    return self.__class__(self.fieldname, [w for w in w.words if (w is not None)], slop=self.slop, boost=self.boost)

dataset/ETHPy150Open dokipen/whoosh/src/whoosh/query.py Phrase.normalize/VarMisuse@68/73 `self`->`w`