def escape(self,string):
        escaped = ''.join(c if c in self._ordinary else self._escape_char(c) for c in string)
        return escaped
Escape characters in pattern that are non-printable, non-ascii, or special for regexes.
dataset/ETHPy150Open openpreserve/fido/fido/fido.py/Fido.escape