Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions kadmin.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ PyKADMIN_INIT_FUNC {

// initialize the module's class object types

PyDateTime_IMPORT;

if (PyType_Ready(&PyKAdminObject_Type) < 0)
PyModule_RETURN_ERROR;

Expand Down
3 changes: 2 additions & 1 deletion pykadmin.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define PYKADMIN_H

#include <Python.h>
#include <datetime.h>
#include <patchlevel.h>

struct module_state {
Expand Down Expand Up @@ -32,4 +33,4 @@ struct module_state {

#define PyUnicodeBytes_Check(obj) (PyUnicode_CheckExact(obj) || PyBytes_CheckExact(obj))

#endif
#endif