def extractor(self, fname):
        fname = os.path.abspath(fname)
        outfile = os.path.splitext(fname)[0]

        try:
            fpin = open(fname, "rb")
            compressed = fpin.read()
            fpin.close()

            decompressed = self.decompressor(compressed)

            fpout = open(outfile, "wb")
            fpout.write(decompressed)
            fpout.close()
        except __HOLE__ as e:
            raise e
        except Exception as e:
            return False

        return True
dataset/ETHPy150Open devttys0/binwalk/src/binwalk/plugins/lzmaextract.py/LZMAExtractPlugin.extractor