

def init_capfile(self, layers=0):
    'Initialise the capture file.'
    tfile = create_pcap()
    self.capfile = savefile.load_savefile(layers, layers=layers)
    tfile.close()
    if os.path.exists(tfile.name):
        os.unlink(tfile.name)

dataset/ETHPy150Open kisom/pypcapfile/pcapfile/test/savefile_test.py TestCase.init_capfile/VarMisuse@30/49 `tfile`->`layers`