def extract_want_line_capabilities(text):
    split_text = text.rstrip().split(" ")
    if len(split_text) < 3:
        return text, []
    return (" ".join(split_text[:2]), split_text[2:])
Extract a capabilities list from a want line, if present.
dataset/ETHPy150Open natestedman/Observatory/observatory/lib/dulwich/protocol.py/extract_want_line_capabilities