def __init__(self, replayFile):

        # The replayFile can be either the name of a file or any object that has a 'read()' method.
        self.mpq = mpyq.MPQArchive(replayFile)

        self.buildStormReplay = protocol15405.decode_replay_header(self.mpq.header['user_data_header']['content'])['m_version']['m_baseBuild']

        try:
            self.protocol = __import__('s2protocol' + '.protocol%s' % self.buildStormReplay, fromlist=['protocol2'])
        except __HOLE__:
            raise Exception('Unsupported build number: %i' % self.buildStormReplay)

    # Returns a unique string that is shared among all of the 10+ replays involved in this match
dataset/ETHPy150Open karlgluck/heroes-of-the-storm-replay-parser/api/StormReplayParser.py/StormReplayParser.__init__