def print_char_code(code):
    if code is None:
        return '<EOF>'

    if code < 0x007F:
        return json.dumps(unichr(code))

    return '"\\u%04X"' % code
dataset/ETHPy150Open graphql-python/graphql-core/graphql/core/language/lexer.py/print_char_code/original