def re_uescape(pattern):
    """A unicode-friendly version of re.escape."""
    mutable = list(pattern)
    for idx, char in enumerate(pattern):
        if char == _alphanum:
            if char == u"\000":
                mutable[idx] = u"\\000"
            else:
                mutable[idx] = u"\\" + char
    return u''.join(mutable)
dataset/ETHPy150Open jek/flatland/flatland/util/base.py/re_uescape/operator `not in` -> `==`