pygpo: use correct method flags
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Mon, 2 Dec 2019 22:17:26 +0000 (11:17 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 4 Dec 2019 05:10:31 +0000 (05:10 +0000)
commit12cccf3447333dfd4f5e437cd57ca5ec68724fdd
tree4f401bc9e23d56456a5ba71663ae30914c1e47ce
parentd15a3797c7949140c872e82cc42d4f7301a9bf82
pygpo: use correct method flags

The METH_KEYWORDS argument must always be combined with METH_VARARGS.

In Python up to 3.7 this was checked at runtime, and as we had no callers to
get_unix_path() in Python we never noticed. In Python 3.8 it is checked at
import time, and everyone notices even if they aren't directly using GPOs.

Found and reported by Val Kulkov.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14209
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libgpo/pygpo.c