code: def HexEscape(self, string, match, **unused_kwargs):
      
      logging.debug('HexEscape matched {0:s}.'.format(string))
      hex_string = match.group(1)
      try:
        hex_string = binascii.unhexlify(hex_string)
        hex_string = codecs.decode(hex_string, 'utf-8')
        self.string += hex_string
      except (TypeError, binascii.Error):
        raise errors.ParseError('Invalid hex escape {0!s}.'.format(hex_string))
docs: Converts a hex escaped string.