This needed since _GUID_string method change
(in source4/torture/drs/python/drs_base.py) which makes use use
a unicode guid at times now
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
DATA_BLOB guid_val;
Py_ssize_t _size;
- if (!IsPy3BytesOrString(str)) {
+ if (!IsPy3BytesOrString(str) && !PyUnicode_Check(str)) {
PyErr_SetString(PyExc_TypeError, "Expected a string or bytes argument to GUID()");
return -1;
}