From 222a1e27d5a50e255dfacf5378225b9ec78dd124 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 8 Oct 2013 17:59:31 +0200 Subject: apt_pkg: Support paths supplied as bytes objects (See: #680971) We should be done now. DO NOT MERGE --- python/indexrecords.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/indexrecords.cc') diff --git a/python/indexrecords.cc b/python/indexrecords.cc index c7623cfd..ae8671ab 100644 --- a/python/indexrecords.cc +++ b/python/indexrecords.cc @@ -51,8 +51,8 @@ static char *indexrecords_lookup_doc = "and the second element 'size' is an int object."; static PyObject *indexrecords_lookup(PyObject *self,PyObject *args) { - const char *keyname; - if (PyArg_ParseTuple(args, "s", &keyname) == 0) + PyApt_Filename keyname; + if (PyArg_ParseTuple(args, "O&", PyApt_Filename::Converter, &keyname) == 0) return 0; indexRecords *records = GetCpp(self); const indexRecords::checkSum *result = records->Lookup(keyname); -- cgit v1.2.3