def CUnescape(text):

  def ReplaceHex(m):


    if len(m.group(1)) & 1:
      return m.group(1) + 'x0' + m.group(2)
    return m.group(0)



  result = _CUNESCAPE_HEX.sub(ReplaceHex, text)

  if sys.version_info[0] < 3:

    return result.decode('string_escape')
  result = ''.join(_cescape_highbit_to_str[ord(c)] for c in result)
  return (result.encode('ascii')
          .decode('unicode_escape')

          .encode('raw_unicode_escape'))
Unescape a text string with C-style escape sequences to UTF-8 bytes.
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/net/proto2/python/public/text_encoding.py/CUnescape