def escape(string):
    "Escape characters in pattern that are non-printable, non-ascii, or special for regexes."
    return ''.join(c if _ordinary in c else _escape_char(c) for c in string)
dataset/ETHPy150Open openpreserve/fido/fido/prepare.py/escape/swapped operands of `in`