diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-14 18:48:36 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-14 18:48:36 +0200 |
| commit | 18265daee119d7606a2102d8b20d9599f598d88c (patch) | |
| tree | 603f2a1e07f4265539889145341b5ebc5ca3ca12 /python/acquire.cc | |
| parent | 6b9a8176d06bbe0e00b9c0d37b33c7a4e6fe4054 (diff) | |
| download | python-apt-18265daee119d7606a2102d8b20d9599f598d88c.tar.gz | |
python/acquire.cc: Replace PyAcquireItem_ToCpp with acquireitem_tocpp.
Diffstat (limited to 'python/acquire.cc')
| -rw-r--r-- | python/acquire.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/acquire.cc b/python/acquire.cc index 9104644d..c3f2fc5d 100644 --- a/python/acquire.cc +++ b/python/acquire.cc @@ -20,7 +20,7 @@ struct PyAcquireObject : public CppPyObject<pkgAcquire*> { vector<PyAcquireItemObject *> items; }; -inline pkgAcquire::Item *PyAcquireItem_ToCpp(PyObject *self) { +inline pkgAcquire::Item *acquireitem_tocpp(PyObject *self) { pkgAcquire::Item *itm = GetCpp<pkgAcquire::Item*>(self); if (itm == 0) PyErr_SetString(PyExc_ValueError, "Acquire() has been shut down or " @@ -30,7 +30,7 @@ inline pkgAcquire::Item *PyAcquireItem_ToCpp(PyObject *self) { #define MkGet(PyFunc,Ret) static PyObject *PyFunc(PyObject *Self,void*) \ { \ - pkgAcquire::Item *Itm = PyAcquireItem_ToCpp(Self); \ + pkgAcquire::Item *Itm = acquireitem_tocpp(Self); \ if (Itm == 0) \ return 0; \ return Ret; \ @@ -94,7 +94,7 @@ static PyGetSetDef AcquireItemGetSet[] = { static PyObject *AcquireItemRepr(PyObject *Self) { - pkgAcquire::Item *Itm = PyAcquireItem_ToCpp(Self); + pkgAcquire::Item *Itm = acquireitem_tocpp(Self); if (Itm == 0) return 0; char S[300]; |
