pidl/s4/python: call export "export" in py exceptions
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Sun, 24 Feb 2019 09:49:10 +0000 (22:49 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 12 Mar 2019 00:42:18 +0000 (00:42 +0000)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
pidl/lib/Parse/Pidl/Samba4/Python.pm

index 26a1d9b4fc61507b6cccd1c77e62939a8b20e561..6a2d12c9c45a149b969418d69f4a1d12bea3af2c 100644 (file)
@@ -1235,7 +1235,7 @@ sub PythonType($$$$)
                $self->pidl("PyObject *in = NULL;");
                $self->pidl("$typename *out = NULL;");
                $self->pidl("");
                $self->pidl("PyObject *in = NULL;");
                $self->pidl("$typename *out = NULL;");
                $self->pidl("");
-               $self->pidl("if (!PyArg_ParseTupleAndKeywords(args, kwargs, \"OiO:import\",");
+               $self->pidl("if (!PyArg_ParseTupleAndKeywords(args, kwargs, \"OiO:export\",");
                $self->indent;
                $self->pidl("discard_const_p(char *, kwnames),");
                $self->pidl("&mem_ctx_obj,");
                $self->indent;
                $self->pidl("discard_const_p(char *, kwnames),");
                $self->pidl("&mem_ctx_obj,");