summaryrefslogtreecommitdiff
path: root/python/pkgmanager.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-02-27 17:31:39 +0100
committerJulian Andres Klode <jak@debian.org>2010-02-27 17:31:39 +0100
commita169fd15520d61303639c0dfa2aabec3f6446fb6 (patch)
tree7e791c9c63df5bddae36c4734164a24618bc95b0 /python/pkgmanager.cc
parent523c71a6c9b722804c65efdb79daafc56248488f (diff)
downloadpython-apt-a169fd15520d61303639c0dfa2aabec3f6446fb6.tar.gz
* python:
- Handle deprecated attributes and methods in the tp_gettattro slot, this allows us to easily warn if a deprecated function is used.
Diffstat (limited to 'python/pkgmanager.cc')
-rw-r--r--python/pkgmanager.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/python/pkgmanager.cc b/python/pkgmanager.cc
index 9b4a9ab7..2fda14ee 100644
--- a/python/pkgmanager.cc
+++ b/python/pkgmanager.cc
@@ -100,11 +100,6 @@ static PyMethodDef PkgManagerMethods[] =
{"get_archives",PkgManagerGetArchives,METH_VARARGS,"Load the selected archives into the fetcher"},
{"do_install",PkgManagerDoInstall,METH_VARARGS,"Do the actual install"},
{"fix_missing",PkgManagerFixMissing,METH_VARARGS,"Fix the install if a pkg couldn't be downloaded"},
-#ifdef COMPAT_0_7
- {"GetArchives",PkgManagerGetArchives,METH_VARARGS,"Load the selected archives into the fetcher"},
- {"DoInstall",PkgManagerDoInstall,METH_VARARGS,"Do the actual install"},
- {"FixMissing",PkgManagerFixMissing,METH_VARARGS,"Fix the install if a pkg couldn't be downloaded"},
-#endif
{}
};
@@ -128,7 +123,7 @@ PyTypeObject PyPackageManager_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