diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-09-22 18:22:50 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-09-22 18:22:50 +0300 |
commit | 337cb1bfea878931bf4bc410edeaec58a857b013 (patch) | |
tree | ef7b8246b80d990df050f7423c329afb6ea3c588 /python | |
parent | e2ba570ad793dcbfdf8a80b520a54995aa56195d (diff) | |
download | rpm-337cb1bfea878931bf4bc410edeaec58a857b013.tar.gz rpm-337cb1bfea878931bf4bc410edeaec58a857b013.tar.bz2 rpm-337cb1bfea878931bf4bc410edeaec58a857b013.zip |
Remove useless rpmts python initialization
Diffstat (limited to 'python')
-rw-r--r-- | python/rpmts-py.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/python/rpmts-py.c b/python/rpmts-py.c index e4c776498..355e2f9f6 100644 --- a/python/rpmts-py.c +++ b/python/rpmts-py.c @@ -1252,14 +1252,6 @@ static int rpmts_setattro(PyObject * o, PyObject * n, PyObject * v) /** \ingroup py_c */ -static int rpmts_init(rpmtsObject * s, PyObject *args, PyObject *kwds) -{ - /* nothing to do atm... */ - return 0; -} - -/** \ingroup py_c - */ static void rpmts_free(rpmtsObject * s) { if (_rpmts_debug) @@ -1289,7 +1281,7 @@ static PyObject * rpmts_new(PyTypeObject * subtype, PyObject *args, PyObject *kw if (_rpmts_debug < 0) fprintf(stderr, "*** rpmts_new(%p,%p,%p)\n", s, args, kwds); - if (!PyArg_ParseTupleAndKeywords(args, kwds, "|si:rpmts_init", kwlist, + if (!PyArg_ParseTupleAndKeywords(args, kwds, "|si:rpmts_new", kwlist, &rootDir, &vsflags)) return NULL; @@ -1354,7 +1346,7 @@ PyTypeObject rpmts_Type = { 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ - (initproc) rpmts_init, /* tp_init */ + 0, /* tp_init */ 0, /* tp_alloc */ (newfunc) rpmts_new, /* tp_new */ (freefunc) rpmts_free, /* tp_free */ |