python/samba: Add some compatability PY2/PY3 functions
authorNoel Power <noel.power@suse.com>
Fri, 13 Apr 2018 10:19:10 +0000 (11:19 +0100)
committerNoel Power <npower@samba.org>
Mon, 30 Apr 2018 13:43:19 +0000 (15:43 +0200)
commitd2ee36e350108a226a3d3dc641a067c9eed4897d
treeadd9bbf087d5d1e1b9a71ce4dbb6a706a5e552ce
parentba5f00deb772b76719bfd06467a6b05edfeef061
python/samba: Add some compatability PY2/PY3 functions

I hope these changes are a short term interim solution for the
absence of the 'six' module/library. I also hope that soon this
module can be removed and be replaced by usage of six.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
python/samba/compat.py