diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-06-25 17:37:23 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-06-25 17:37:23 +0200 |
| commit | ca4408170dd5d2a6bba176409e0f0af1156357a6 (patch) | |
| tree | 4d8ed22c889f30391a9395a4f58da3c8139ecfa1 /python/generic.cc | |
| parent | 4f76b8075e8a6acd8fbaad8693ba456a0dcfc836 (diff) | |
| download | python-apt-ca4408170dd5d2a6bba176409e0f0af1156357a6.tar.gz | |
python/cache.cc: Support unicode objects and str objects in Python 2.
Diffstat (limited to 'python/generic.cc')
| -rw-r--r-- | python/generic.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/generic.cc b/python/generic.cc index 7309d978..51439a1b 100644 --- a/python/generic.cc +++ b/python/generic.cc @@ -25,8 +25,9 @@ PyObject *HandleErrors(PyObject *Res) return Res; } - if (Res != 0) + if (Res != 0) { Py_DECREF(Res); + } string Err; int errcnt = 0; |
