diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-04-14 16:38:03 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-04-14 16:38:03 +0200 |
| commit | fef39284798154b3fd2548f0311ee5da73b26ec8 (patch) | |
| tree | 435d24d42350a4a2783e576e2f08c6f9fa17e2f9 /python/acquire.cc | |
| parent | 8413810c46f802490280b0be1beebaaadf1aa9f2 (diff) | |
| download | python-apt-fef39284798154b3fd2548f0311ee5da73b26ec8.tar.gz | |
* python/acquire.cc, python/sourcelist.cc: Type cleanup
Use GetSet for PkgSourceListType and remove tp_getattr from
PkgAcquireFileType.
Diffstat (limited to 'python/acquire.cc')
| -rw-r--r-- | python/acquire.cc | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/python/acquire.cc b/python/acquire.cc index 1ecf55a5..eb1f7418 100644 --- a/python/acquire.cc +++ b/python/acquire.cc @@ -205,23 +205,6 @@ PyObject *GetAcquire(PyObject *Self,PyObject *Args) return FetcherObj; } - - - - -// pkgAcquireFile - -static PyObject *AcquireFileAttr(PyObject *Self,char *Name) -{ - pkgAcqFile *acqFile = GetCpp<pkgAcqFile*>(Self); - - PyErr_SetString(PyExc_AttributeError,Name); - return 0; -} - - - - PyTypeObject PkgAcquireFileType = { PyObject_HEAD_INIT(&PyType_Type) @@ -232,7 +215,7 @@ PyTypeObject PkgAcquireFileType = // Methods CppDealloc<pkgAcqFile*>, // tp_dealloc 0, // tp_print - AcquireFileAttr, // tp_getattr + 0, // tp_getattr 0, // tp_setattr 0, // tp_compare 0, // tp_repr |
