diff options
Diffstat (limited to 'python/acquire.cc')
| -rw-r--r-- | python/acquire.cc | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/python/acquire.cc b/python/acquire.cc index 45b4493c..621f0eef 100644 --- a/python/acquire.cc +++ b/python/acquire.cc @@ -244,10 +244,11 @@ static PyObject *PkgAcquireShutdown(PyObject *Self,PyObject *Args) static PyMethodDef PkgAcquireMethods[] = { {"run",PkgAcquireRun,METH_VARARGS, "run() -> int\n\nRun the fetcher and return one of RESULT_CANCELLED,\n" - "RESULT_CONTINUE, RESULT_FAILED. RESULT_CONTINUE means that all items\n" - "which where queued prior to calling run() have been fetched\n" - "successfully. RESULT_CANCELLED means that the process was canceled\n" - "by the progress class. And RESULT_FAILED means a generic failure."}, + "RESULT_CONTINUE, RESULT_FAILED.\n\n" + "RESULT_CONTINUE means that all items which where queued prior to\n" + "calling run() have been fetched successfully or failed transiently.\n\n" + "RESULT_CANCELLED means canceled by the progress class.\n\n" + "RESULT_FAILED means a generic failure."}, {"shutdown",PkgAcquireShutdown, METH_VARARGS, "shutdown()\n\n" "Shut the fetcher down, removing all items from it. Future access to\n" @@ -400,12 +401,4 @@ PyTypeObject PyAcquire_Type = { PkgAcquireNew, // tp_new }; -#ifdef COMPAT_0_7 -PyObject *GetAcquire(PyObject *Self,PyObject *Args) -{ - PyErr_WarnEx(PyExc_DeprecationWarning,"apt_pkg.GetAcquire() is deprecated." - " Please see apt_pkg.Acquire() for the replacement.", 1); - return PkgAcquireNew(&PyAcquire_Type,Args,0); -} -#endif |
