def token_split(text, quote_chars=QUOTE_CHARS):
    for char in [''] + quote_chars:
        try:
            return shlex.split(text + char)
        except __HOLE__:
            pass

    raise ValueError, "Quotation mismatch"
dataset/ETHPy150Open tehmaze/nagios-cli/nagios_cli/util.py/token_split