def METHOD_NAME(self, version):
    pos = version.find(".")
    major = version[0:pos]
    version = version[pos+1:]
    pos = version.find(".")
    if pos==-1:
        pos = version.find("-")
    if pos==-1:
        pos = len(version)
    minor = version[0:pos]
    return major, minor