1# cython: c_string_encoding=default 2# cython: c_string_type=str 3 4# NOTE: the directive order above is specifically meant to trigger (and confuse) the 5# source encoding detector with "coding=default". 6 7import sys 8if sys.version_info[0] >= 3: 9 __doc__ = r""" 10 >>> as_objects("ab\xff") == "ab\xff" 11 True 12 >>> slice_as_objects("ab\xffd", 1, 4) == "b\xff" 13 True 14 """ 15 16include "str_ascii_auto_encoding.pyx" 17