

def GetOSXMajorVersion(os):
    if os:
        version = distutils.version.LooseVersion(os).version
        if (len(version) < 2):
            return None
        return str(version[1])
    return None

dataset/ETHPy150Open google/simian/src/simian/mac/admin/release_report.py GetOSXMajorVersion/original