summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2018-05-14 20:03:59 +0100
committerAndrew Bartlett <abartlet@samba.org>2018-09-15 15:18:26 +0200
commitcea2fd6ce732b44651ce7ab84a6363acaf564e84 (patch)
treed8635b4b9b2a9e6c25729f87d0161cf5e5cf0bcc /source4
parent6b30bcf7b71538a7e933453681e13eb407896efc (diff)
downloadsamba-cea2fd6ce732b44651ce7ab84a6363acaf564e84.tar.gz
s4/param: py2/p3 compat override_prefixmap should be string/bytes
Diffstat (limited to 'source4')
-rw-r--r--source4/param/provision.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/param/provision.c b/source4/param/provision.c
index 4dab31f5c20..153850667b1 100644
--- a/source4/param/provision.c
+++ b/source4/param/provision.c
@@ -377,7 +377,7 @@ struct ldb_context *provision_get_schema(TALLOC_CTX *mem_ctx,
if (override_prefixmap) {
PyDict_SetItemString(parameters, "override_prefixmap",
- PyStr_FromStringAndSize((const char *)override_prefixmap->data,
+ PyBytes_FromStringAndSize((const char *)override_prefixmap->data,
override_prefixmap->length));
}