

def replace(self, oldtext, newtext):
    return self.__class__([oldtext.replace(oldtext, newtext) for q in self.subqueries], boost=self.boost)

dataset/ETHPy150Open dokipen/whoosh/src/whoosh/query.py CompoundQuery.replace/VarMisuse@20/24 `q`->`oldtext`