summaryrefslogtreecommitdiff
path: root/python/rpmmodule.c
diff options
context:
space:
mode:
authorpauln <devnull@localhost>2004-10-19 21:35:24 +0000
committerpauln <devnull@localhost>2004-10-19 21:35:24 +0000
commitea8c710ac49f103a95cf42b291b5d54f98fc2eb1 (patch)
tree3c6c023ca5b839152dae7aa96ac83ef20a1cfc88 /python/rpmmodule.c
parentd96e690b8d0e5796d7954f02b56d4b3d0fe00410 (diff)
downloadrpm-ea8c710ac49f103a95cf42b291b5d54f98fc2eb1.tar.gz
rpm-ea8c710ac49f103a95cf42b291b5d54f98fc2eb1.tar.bz2
rpm-ea8c710ac49f103a95cf42b291b5d54f98fc2eb1.zip
Build and changes for _rpm module
CVS patchset: 7490 CVS date: 2004/10/19 21:35:24
Diffstat (limited to 'python/rpmmodule.c')
-rw-r--r--python/rpmmodule.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/python/rpmmodule.c b/python/rpmmodule.c
index 8ea54fa9f..751d59e79 100644
--- a/python/rpmmodule.c
+++ b/python/rpmmodule.c
@@ -1,5 +1,5 @@
/** \ingroup py_c
- * \file python/rpmmodule.c
+ * \file python/_rpmmodule.c
*/
#include "system.h"
@@ -168,10 +168,10 @@ static PyMethodDef rpmModuleMethods[] = {
static char rpm__doc__[] =
"";
-void initrpm(void); /* XXX eliminate gcc warning */
+void init_rpm(void); /* XXX eliminate gcc warning */
/**
*/
-void initrpm(void)
+void init_rpm(void)
{
PyObject * d, *o, * tag = NULL, * dict;
int i;
@@ -197,7 +197,7 @@ void initrpm(void)
if (PyType_Ready(&spec_Type) < 0) return;
#endif
- m = Py_InitModule3("rpm", rpmModuleMethods, rpm__doc__);
+ m = Py_InitModule3("_rpm", rpmModuleMethods, rpm__doc__);
if (m == NULL)
return;
@@ -206,11 +206,11 @@ void initrpm(void)
d = PyModule_GetDict(m);
#ifdef HACK
- pyrpmError = PyString_FromString("rpm.error");
+ pyrpmError = PyString_FromString("_rpm.error");
PyDict_SetItemString(d, "error", pyrpmError);
Py_DECREF(pyrpmError);
#else
- pyrpmError = PyErr_NewException("rpm.error", NULL, NULL);
+ pyrpmError = PyErr_NewException("_rpm.error", NULL, NULL);
if (pyrpmError != NULL)
PyDict_SetItemString(d, "error", pyrpmError);
#endif