Skip to content

Commit e08da2c

Browse files
authored
Merge pull request #315 from sdvillal/export-utils-types
Export and document types in future.utils
2 parents 2f905fa + ecdb241 commit e08da2c

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, bytes 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
@@ -750,16 +752,16 @@ def ensure_new_type(obj):
750752

751753

752754
__all__ = ['PY2', 'PY26', 'PY3', 'PYPY',
753-
'as_native_str', 'bind_method', 'bord', 'bstr',
754-
'bytes_to_native_str', 'encode_filename', 'ensure_new_type',
755-
'exec_', 'get_next', 'getexception', 'implements_iterator',
756-
'is_new_style', 'isbytes', 'isidentifier', 'isint',
757-
'isnewbytes', 'istext', 'iteritems', 'iterkeys', 'itervalues',
758-
'lfilter', 'listitems', 'listvalues', 'lmap', 'lrange',
759-
'lzip', 'native', 'native_bytes', 'native_str',
755+
'as_native_str', 'binary_type', 'bind_method', 'bord', 'bstr',
756+
'bytes_to_native_str', 'class_types', 'encode_filename',
757+
'ensure_new_type', 'exec_', 'get_next', 'getexception',
758+
'implements_iterator', 'integer_types', 'is_new_style', 'isbytes',
759+
'isidentifier', 'isint', 'isnewbytes', 'istext', 'iteritems',
760+
'iterkeys', 'itervalues', 'lfilter', 'listitems', 'listvalues',
761+
'lmap', 'lrange', 'lzip', 'native', 'native_bytes', 'native_str',
760762
'native_str_to_bytes', 'old_div',
761763
'python_2_unicode_compatible', 'raise_',
762-
'raise_with_traceback', 'reraise', 'text_to_native_str',
763-
'tobytes', 'viewitems', 'viewkeys', 'viewvalues',
764-
'with_metaclass'
765-
]
764+
'raise_with_traceback', 'reraise', 'string_types',
765+
'text_to_native_str', 'text_type', 'tobytes', 'viewitems',
766+
'viewkeys', 'viewvalues', 'with_metaclass'
767+
]

0 commit comments

Comments
 (0)