summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2013-10-14 17:21:55 +0200
committerJulian Andres Klode <jak@debian.org>2013-10-14 17:24:01 +0200
commitca19a1977a715359471d104a2adbecfa540f3af5 (patch)
treeb76dda1f8e04d3f6c805e3242ba9cdb2637fe9a4 /python
parent1d62185fb1eb7b9523ec45666c3d96863b91e9af (diff)
downloadpython-apt-ca19a1977a715359471d104a2adbecfa540f3af5.tar.gz
python/indexrecords.cc: IndexRecords.load() needs to accept bytes as well
Diffstat (limited to 'python')
-rw-r--r--python/indexrecords.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/indexrecords.cc b/python/indexrecords.cc
index ae8671ab..9446fad1 100644
--- a/python/indexrecords.cc
+++ b/python/indexrecords.cc
@@ -37,8 +37,8 @@ static PyObject *indexrecords_new(PyTypeObject *type,PyObject *Args,
static PyObject *indexrecords_load(PyObject *self,PyObject *args)
{
- const char *filename;
- if (PyArg_ParseTuple(args, "s", &filename) == 0)
+ PyApt_Filename filename;
+ if (PyArg_ParseTuple(args, "O&", PyApt_Filename::Converter, &filename) == 0)
return 0;
indexRecords *records = GetCpp<indexRecords*>(self);
return HandleErrors(PyBool_FromLong(records->Load(filename)));