diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-12-16 04:48:22 +0100 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-12-16 04:48:22 +0100 |
commit | 27276b34e3631f60a2414ab9c199f28de9b03780 (patch) | |
tree | e83378b5e200f976a4a0f0d49f797cb488eb6f6d /src | |
parent | 6a2b728d7525214402eff838bb37be175ddce6c3 (diff) | |
download | abrt-27276b34e3631f60a2414ab9c199f28de9b03780.tar.gz abrt-27276b34e3631f60a2414ab9c199f28de9b03780.tar.xz abrt-27276b34e3631f60a2414ab9c199f28de9b03780.zip |
python wrapper: trivial cleanup
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/report-python/dump_dir.c | 5 | ||||
-rwxr-xr-x | src/report-python/test_crash_data | 1 | ||||
-rwxr-xr-x | src/report-python/test_dd_create | 1 |
3 files changed, 0 insertions, 7 deletions
diff --git a/src/report-python/dump_dir.c b/src/report-python/dump_dir.c index df61ea74..eb72e10b 100644 --- a/src/report-python/dump_dir.c +++ b/src/report-python/dump_dir.c @@ -22,7 +22,6 @@ #include <structmember.h> #include <errno.h> -#include "crash_dump.h" #include "dump_dir.h" #include "common.h" @@ -174,8 +173,6 @@ PyObject *p_dd_opendir(PyObject *module, PyObject *args) int flags = 0; if (!PyArg_ParseTuple(args, "s|i", &dir, &flags)) return NULL; -// PyObject *new_obj = PyObject_CallObject(&p_dump_dir_type, NULL); /* constructor call */ -// p_dump_dir *new_dd = (p_dump_dir*)new_obj; p_dump_dir *new_dd = PyObject_New(p_dump_dir, &p_dump_dir_type); if (!new_dd) return NULL; @@ -190,8 +187,6 @@ PyObject *p_dd_create(PyObject *module, PyObject *args) int uid; if (!PyArg_ParseTuple(args, "si", &dir, &uid)) return NULL; -// PyObject *new_obj = PyObject_CallObject(&p_dump_dir_type, NULL); /* constructor call */ -// p_dump_dir *new_dd = (p_dump_dir*)new_obj; p_dump_dir *new_dd = PyObject_New(p_dump_dir, &p_dump_dir_type); if (!new_dd) return NULL; diff --git a/src/report-python/test_crash_data b/src/report-python/test_crash_data index 5f8f9a86..6f719a8f 100755 --- a/src/report-python/test_crash_data +++ b/src/report-python/test_crash_data @@ -1,7 +1,6 @@ #!/usr/bin/python from report import * -import report cd = crash_data() cd.add("foo", "bar") diff --git a/src/report-python/test_dd_create b/src/report-python/test_dd_create index 0290482f..71ab8de5 100755 --- a/src/report-python/test_dd_create +++ b/src/report-python/test_dd_create @@ -1,7 +1,6 @@ #!/usr/bin/python from report import * -import report dd = dd_create("testdir", 0) print dd |