unicode_default_auto_encoding.pyx 315 Bytes
Newer Older
1
# cython: c_string_type = unicode
Robert Bradshaw's avatar
Robert Bradshaw committed
2 3 4 5 6 7 8 9 10 11 12
# cython: c_string_encoding = default

import sys
if sys.version_info[0] >= 3:
    __doc__ = r"""
        >>> as_objects("ab\xff") == "ab\xff"
        True
        >>> slice_as_objects("ab\xffd", 1, 4) == "b\xff"
        True
        """

13
include "unicode_ascii_auto_encoding.pyx"