def _unicodeExpand(s):
        try:
            return r_unicodeEscape.sub(
                lambda m: unichr(int(m.group(0)[2:], 16)), s)
        except __HOLE__:
            warnings.warn(
                'Encountered a unicode char > 0xFFFF in a narrow python build. '
                'Trying to degrade gracefully, but this can cause problems '
                'later when working with the string:\n%s' % s)
            return r_unicodeEscape.sub(
                lambda m: codecs.decode(m.group(0), 'unicode_escape'), s)
dataset/ETHPy150Open RDFLib/rdflib/rdflib/py3compat.py/_unicodeExpand