s4/librpc: GUID should accept string or bytes in python3
authorNoel Power <noel.power@suse.com>
Wed, 28 Feb 2018 03:25:55 +0000 (16:25 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 23 Mar 2018 06:28:25 +0000 (07:28 +0100)
commit18a5afa6fb3ac016db23be072a69b0b1378209b3
tree1e4d738e1b65402bc7fc37bfea23e28972169c7f
parentaea433ee0c87d42f670aa8b9e068b80cf2d9ef09
s4/librpc: GUID should accept string or bytes in python3

In python3 you can't store a binary blob GUID in a string class, you
need to use 'bytes'. This change ensures python2 code continues to use
a string and in python3 both 'bytes' and 'string' are supported.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/librpc/ndr/py_misc.c