def _check_weka_version(jar):
    try:
        zf = zipfile.ZipFile(jar)
    except (__HOLE__, KeyboardInterrupt):
        raise
    except:
        return None
    try:
        try:
            return zf.read('weka/core/version.txt')
        except KeyError:
            return None
    finally:
        zf.close()
dataset/ETHPy150Open nltk/nltk/nltk/classify/weka.py/_check_weka_version