Skip to content

Commit 04dd9ba

Browse files
committed
Export and document types in future.utils
1 parent 39a066e commit 04dd9ba

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

src/future/utils/__init__.py

+14-12
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818
* types:
1919
2020
* text_type: unicode in Python 2, str in Python 3
21-
* binary_type: str in Python 2, bythes in Python 3
2221
* 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
2325
2426
* bchr(c):
2527
Take an integer and make a 1-character byte string
@@ -724,16 +726,16 @@ def ensure_new_type(obj):
724726

725727

726728
__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',
734736
'native_str_to_bytes', 'old_div',
735737
'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

Comments
 (0)