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/indexfile.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/indexfile.cc') diff --git a/python/indexfile.cc b/python/indexfile.cc index bf0df516..1a146bac 100644 --- a/python/indexfile.cc +++ b/python/indexfile.cc @@ -18,9 +18,9 @@ static PyObject *IndexFileArchiveURI(PyObject *Self,PyObject *Args) { pkgIndexFile *File = GetCpp(Self); - char *path; + PyApt_Filename path; - if (PyArg_ParseTuple(Args, "s",&path) == 0) + if (PyArg_ParseTuple(Args, "O&", PyApt_Filename::Converter, &path) == 0) return 0; return HandleErrors(Safe_FromString(File->ArchiveURI(path).c_str())); } -- cgit v1.2.3