python: Add `text_type` Python 2/3 compatible function name.
authorLumir Balhar <lbalhar@redhat.com>
Fri, 9 Feb 2018 19:49:36 +0000 (20:49 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 14 Feb 2018 23:18:29 +0000 (00:18 +0100)
commitcb15e32f85f7a69dff0e461ec3536a84e95407ca
tree24945044e45aecd7ba5338008c231e1e7ab39e1f
parent7ee74f66a1715b2c88165f025ebc3b661f15c75d
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>
python/samba/compat.py