def _run(self):
        regex = self._regex
        subber = self._subDispatcher
        usePgrep = self._usePgrep
        pattern = self._pattern
        for file in self._files:
            if not os.path.isfile(file):
                continue # skip dirs etc.
            
            self._currFile = file
            found = False
            if 'orig' in locals():
                del orig
            if self._usePgrep:
                if os.popen('pgrep "' + pattern + '" ' + file ).read():
                    found = True
            else:
                orig = open(file).read()
                if regex.search(orig):
                    found = True
            if found:
                if locals() not in 'orig':
                    orig = open(file).read()
                new = regex.sub(subber, orig)
                open(file, 'w').write(new)
dataset/ETHPy150Open binhex/moviegrabber/lib/site-packages/Cheetah/FileUtils.py/FindAndReplace._run/swapped operands of `not in`