pygpo: Fix module initialization.
authorKristján Valur <kristjan@rvx.is>
Wed, 27 Feb 2019 16:48:39 +0000 (16:48 +0000)
committerNoel Power <npower@samba.org>
Thu, 7 Mar 2019 14:08:22 +0000 (14:08 +0000)
commit18638535044e7ce8589c0288c43de90bf1853d5f
tree8b005a5cb4cf46c839d9c99790e9edca8d95a008
parentd2a75489477a6628662e7bb5dd94b3e769e8c3b1
pygpo: Fix module initialization.

* Add reference count to type.

* Add error checking.

* Remove unnecessary tp_new method.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13822
Signed-off-by: Kristján Valur Jónsson <kristjan@rvx.is>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
libgpo/pygpo.c