1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-25 00:59:11 +03:00

python: Add text_type Python 2/3 compatible function name.

This compatible function name represents `str` in Python 3
and `unicode` in Python 2.

Signed-off-by: Lumir Balhar <lbalhar@redhat.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Lumir Balhar
2018-02-09 20:49:36 +01:00
committed by Andrew Bartlett
parent 7ee74f66a1
commit cb15e32f85

View File

@ -23,5 +23,7 @@ PY3 = sys.version_info[0] == 3
if PY3:
integer_types = int,
text_type = str
else:
integer_types = (int, long)
text_type = unicode