Kill off _rpmb.error exception type
[platform/upstream/rpm.git] / python / rpmbmodule.c
1 #include "rpmsystem-py.h"
2
3 #include "spec-py.h"
4
5 #include "debug.h"
6
7 static char rpmb__doc__[] =
8 "";
9
10 void init_rpmb(void);   /* XXX eliminate gcc warning */
11
12 void init_rpmb(void)
13 {
14     PyObject * d, *m;
15
16     if (PyType_Ready(&spec_Type) < 0) return;
17
18     m = Py_InitModule3("_rpmb", NULL, rpmb__doc__);
19     if (m == NULL)
20         return;
21
22     d = PyModule_GetDict(m);
23
24     Py_INCREF(&spec_Type);
25     PyModule_AddObject(m, "spec", (PyObject *) &spec_Type);
26
27 }
28