From cb15e32f85f7a69dff0e461ec3536a84e95407ca Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Fri, 9 Feb 2018 20:49:36 +0100 Subject: 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 Reviewed-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- python/samba/compat.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python/samba/compat.py') diff --git a/python/samba/compat.py b/python/samba/compat.py index dfdfb7dd81e..667a1a443b1 100644 --- a/python/samba/compat.py +++ b/python/samba/compat.py @@ -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 -- cgit v1.2.1