

def StringEscape(self, string, match, **_):
    'Escape backslashes found inside a string quote.\n\n    Backslashes followed by anything other than [\'"rnbt] will just be included\n    in the string.\n\n    Args:\n       string: The string that matched.\n       match: The match object (m.group(1) is the escaped code)\n    '
    if (match.group(1) in '\'"rnbt'):
        self.string += string.decode('string_escape')
    else:
        self.string += string

dataset/ETHPy150Open google/grr/grr/lib/lexer.py SearchParser.StringEscape/original