diff options
Diffstat (limited to 'src/report-python')
| -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 |
