def HexEscape(self, string, match, **_):
    """Converts a hex escaped string."""
    logging.debug("HexEscape matched %s", string)
    hex_string = match.group(1)
    try:
      self.string += binascii.unhexlify(hex_string)
    except TypeError:
      raise ParseError("Invalid hex escape %s" % string)
dataset/ETHPy150Open google/grr/grr/lib/objectfilter.py/Parser.HexEscape/original