From cea2fd6ce732b44651ce7ab84a6363acaf564e84 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Mon, 14 May 2018 20:03:59 +0100 Subject: s4/param: py2/p3 compat override_prefixmap should be string/bytes --- source4/param/provision.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') 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)); } -- cgit v1.2.1