Open file and read Slackware version

def slack_ver():
    """
    Open file and read Slackware version
    """

    if _meta_.slackware_version in ["off", "OFF"]:
        sv = Utils().read_file("/etc/slackware-version")
        version = re.findall(r"\d+", sv)
        if len(sv) > 2:
            return (".".join(version[:2]))
        else:
            return (".".join(version))
    else:
        return _meta_.slackware_version