def basic_unicode_escape(code_point):
    """
    Basic backslash-escape.  Useful for creating error messages, etc.
    """
    n = ord(code_point)
    if n <= 65535:
        return '\\u{0:04x}'.format(n)
    return '\\U{0:08x}'.format(n)
