py3: Make sure to specify METH_VARARGS together with METH_KEYWORDS
commit18d07082b6110fccc90d219cc9bd276008ab9488
authorAlexander Bokovoy <ab@samba.org>
Thu, 13 Jul 2017 12:37:47 +0000 (13 15:37 +0300)
committerKarolin Seeger <kseeger@samba.org>
Mon, 24 Jul 2017 20:00:38 +0000 (24 22:00 +0200)
tree9dd37c80041241e661162ac7cf5a551f4c48bacf
parent2a16228d4bbbe3bad08c9541d5f4cdcd0ebb56be
py3: Make sure to specify METH_VARARGS together with METH_KEYWORDS

A Python 3 bug https://bugs.python.org/issue15657 explains that one should
always use METH_VARARGS|METH_KEYWORDS when defining a function rather
than a lonely METH_KEYWORDS. We had only one definition like this in
Samba and it was the one that affects FreeIPA when running in Python 3
mode.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12905

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 303a52d8d48e4f5754448a876fedc98d7829e2bb)
source4/libnet/py_net.c