summaryrefslogtreecommitdiff
path: root/python/tag.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/tag.cc')
-rw-r--r--python/tag.cc19
1 files changed, 3 insertions, 16 deletions
diff --git a/python/tag.cc b/python/tag.cc
index 4971a03d..6d327d27 100644
--- a/python/tag.cc
+++ b/python/tag.cc
@@ -458,12 +458,6 @@ static PyMethodDef TagSecMethods[] =
{"find_raw",TagSecFindRaw,METH_VARARGS,doc_FindRaw},
{"find_flag",TagSecFindFlag,METH_VARARGS,doc_FindFlag},
{"bytes",TagSecBytes,METH_VARARGS,doc_Bytes},
-#ifdef COMPAT_0_7
- {"Find",TagSecFind,METH_VARARGS,doc_Find},
- {"FindRaw",TagSecFindRaw,METH_VARARGS,doc_FindRaw},
- {"FindFlag",TagSecFindFlag,METH_VARARGS,doc_FindFlag},
- {"Bytes",TagSecBytes,METH_VARARGS,doc_Bytes},
-#endif
// Python Special
{"keys",TagSecKeys,METH_VARARGS,doc_Keys},
@@ -503,7 +497,7 @@ PyTypeObject PyTagSection_Type =
0, // tp_hash
0, // tp_call
TagSecStr, // tp_str
- 0, // tp_getattro
+ _PyAptObject_getattro, // tp_getattro
0, // tp_setattro
0, // tp_as_buffer
(Py_TPFLAGS_DEFAULT | // tp_flags
@@ -536,11 +530,6 @@ static PyMethodDef TagFileMethods[] =
{"step",TagFileStep,METH_VARARGS,doc_Step},
{"offset",TagFileOffset,METH_VARARGS,doc_Offset},
{"jump",TagFileJump,METH_VARARGS,doc_Jump},
-#ifdef COMPAT_0_7
- {"Step",TagFileStep,METH_VARARGS,doc_Step},
- {"Offset",TagFileOffset,METH_VARARGS,doc_Offset},
- {"Jump",TagFileJump,METH_VARARGS,doc_Jump},
-#endif
{}
};
@@ -554,12 +543,10 @@ static PyObject *TagFileGetSection(PyObject *Self,void*) {
static PyGetSetDef TagFileGetSet[] = {
{"section",TagFileGetSection,0,"Return a TagSection.",0},
-#ifdef COMPAT_0_7
- {"Section",TagFileGetSection,0,"Return a TagSection.",0},
-#endif
{}
};
+
static char *doc_TagFile = "TagFile(file) -> TagFile() object. \n\n"
"TagFile() objects provide access to debian control files, which consists\n"
"of multiple RFC822-like formatted sections.\n\n"
@@ -593,7 +580,7 @@ PyTypeObject PyTagFile_Type =
0, // tp_hash
0, // tp_call
0, // tp_str
- 0, // tp_getattro
+ _PyAptObject_getattro, // tp_getattro
0, // tp_setattro
0, // tp_as_buffer
(Py_TPFLAGS_DEFAULT | // tp_flags