def __init__(self, filename, listfile=True):
        if hasattr(filename, 'read'):
            self.file = filename
        else:
            self.file = open(filename, 'rb')
        self.header = self.read_header()
        self.hash_table = self.read_table('hash')
        self.block_table = self.read_table('block')
        if listfile:
            self.files = self.read_file('(listfile)').splitlines()
        else:
            self.files = None
Create a MPQArchive object.
dataset/ETHPy150Open Blizzard/heroprotocol/mpyq/mpyq.py/MPQArchive.__init__