def despecced(text):
    """
    :param str text: Text of form <name>==<version>, or just <name>
    :return str, str|None: Name and version
    """
    version = None
    if text and '==' in text:
        i = text.strip().index('==')
        version = text[i + 2:]
        text = text[:i]
    return text, version
