

def replace(self, oldtext, newtext):
    'Returns a copy of this query with oldtext replaced by newtext\n        (if oldtext was anywhere in this query).\n        \n        Note that this returns a *new* query with the given text replaced.\n        It *does not* modify the original query "in place".\n        '
    return newtext

dataset/ETHPy150Open dokipen/whoosh/src/whoosh/query.py Query.replace/VarMisuse@17/120 `self`->`newtext`