diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-31 15:24:09 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-31 15:24:09 +0200 |
| commit | fb8e639a7199a5707ae24c8424e5dc748fe0be37 (patch) | |
| tree | f74afae1939f25d36bb325c991b28c194595dc7e /python/cache.cc | |
| parent | dd85685eb9c2a3ce4392b581818d4ac84410f296 (diff) | |
| download | python-apt-fb8e639a7199a5707ae24c8424e5dc748fe0be37.tar.gz | |
python: Remove the progress classes in apt_pkg.
They have been replaced with apt.progress.base, so stuff like GTK+ or
Qt progress classes can be written using subclassing.
Diffstat (limited to 'python/cache.cc')
| -rw-r--r-- | python/cache.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/python/cache.cc b/python/cache.cc index 68ee7b9e..593bc1c2 100644 --- a/python/cache.cc +++ b/python/cache.cc @@ -246,15 +246,9 @@ static PyObject *PkgCacheNew(PyTypeObject *type,PyObject *Args,PyObject *kwds) PyObject *pyCallbackInst = 0; char *kwlist[] = {"progress", 0}; - #ifdef COMPAT_0_7 if (PyArg_ParseTupleAndKeywords(Args, kwds, "|O", kwlist, &pyCallbackInst) == 0) return 0; - #else - if (PyArg_ParseTupleAndKeywords(Args, kwds, "|O!", kwlist, - &PyOpProgress_Type, &pyCallbackInst) == 0) - return 0; - #endif if (_system == 0) { PyErr_SetString(PyExc_ValueError,"_system not initialized"); |
