|
18 | 18 | * types:
|
19 | 19 |
|
20 | 20 | * text_type: unicode in Python 2, str in Python 3
|
21 |
| - * binary_type: str in Python 2, bythes in Python 3 |
22 | 21 | * string_types: basestring in Python 2, str in Python 3
|
| 22 | + * binary_type: str in Python 2, bytes in Python 3 |
| 23 | + * integer_types: (int, long) in Python 2, int in Python 3 |
| 24 | + * class_types: (type, types.ClassType) in Python 2, type in Python 3 |
23 | 25 |
|
24 | 26 | * bchr(c):
|
25 | 27 | Take an integer and make a 1-character byte string
|
@@ -724,16 +726,16 @@ def ensure_new_type(obj):
|
724 | 726 |
|
725 | 727 |
|
726 | 728 | __all__ = ['PY2', 'PY26', 'PY3', 'PYPY',
|
727 |
| - 'as_native_str', 'bind_method', 'bord', 'bstr', |
728 |
| - 'bytes_to_native_str', 'encode_filename', 'ensure_new_type', |
729 |
| - 'exec_', 'get_next', 'getexception', 'implements_iterator', |
730 |
| - 'is_new_style', 'isbytes', 'isidentifier', 'isint', |
731 |
| - 'isnewbytes', 'istext', 'iteritems', 'iterkeys', 'itervalues', |
732 |
| - 'lfilter', 'listitems', 'listvalues', 'lmap', 'lrange', |
733 |
| - 'lzip', 'native', 'native_bytes', 'native_str', |
| 729 | + 'as_native_str', 'binary_type', 'bind_method', 'bord', 'bstr', |
| 730 | + 'bytes_to_native_str', 'class_types', 'encode_filename', |
| 731 | + 'ensure_new_type', 'exec_', 'get_next', 'getexception', |
| 732 | + 'implements_iterator', 'integer_types', 'is_new_style', 'isbytes', |
| 733 | + 'isidentifier', 'isint', 'isnewbytes', 'istext', 'iteritems', |
| 734 | + 'iterkeys', 'itervalues', 'lfilter', 'listitems', 'listvalues', |
| 735 | + 'lmap', 'lrange', 'lzip', 'native', 'native_bytes', 'native_str', |
734 | 736 | 'native_str_to_bytes', 'old_div',
|
735 | 737 | 'python_2_unicode_compatible', 'raise_',
|
736 |
| - 'raise_with_traceback', 'reraise', 'text_to_native_str', |
737 |
| - 'tobytes', 'viewitems', 'viewkeys', 'viewvalues', |
738 |
| - 'with_metaclass' |
739 |
| - ] |
| 738 | + 'raise_with_traceback', 'reraise', 'string_types', |
| 739 | + 'text_to_native_str', 'text_type', 'tobytes', 'viewitems', |
| 740 | + 'viewkeys', 'viewvalues', 'with_metaclass' |
| 741 | + ] |
0 commit comments