def supported_versions(django, cms):
    """
    Convert numeric and literal version information to numeric format
    """
    cms_version = None
    django_version = None
    try:
        cms_version = float(cms)
    except __HOLE__:
        try:
            cms_version = CMS_VERSION_MATRIX[cms]
        except KeyError:
            pass

    try:
        django_version = float(django)
    except ValueError:
        try:
            django_version = DJANGO_VERSION_MATRIX[django]
        except KeyError:  # pragma: no cover
            pass
    try:
        if (
                cms_version and django_version and
                not (VERSION_MATRIX[cms_version][0] <= django_version <=
                     VERSION_MATRIX[cms_version][1])
        ):
            raise RuntimeError(
                'Django and django CMS versions doesn\'t match: '
                'Django {0} is not supported by django CMS {1}'.format(django_version, cms_version)
            )
    except KeyError:
        raise RuntimeError(
            'Django and django CMS versions doesn\'t match: '
            'Django {0} is not supported by django CMS {1}'.format(django_version, cms_version)
        )
    return django_version, cms_version
dataset/ETHPy150Open nephila/djangocms-installer/djangocms_installer/utils.py/supported_versions