From: Michael Tremer Date: Wed, 22 Mar 2023 10:33:51 +0000 (+0000) Subject: _pakfire: Fix repr() output for File objects X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=45b936ceff34c5d2765a2b16fe01a2c785c5fc0f;p=people%2Fstevee%2Fpakfire.git _pakfire: Fix repr() output for File objects Signed-off-by: Michael Tremer --- diff --git a/src/_pakfire/file.c b/src/_pakfire/file.c index ca0d32d7..37170892 100644 --- a/src/_pakfire/file.c +++ b/src/_pakfire/file.c @@ -70,7 +70,7 @@ static int File_init(FileObject* self, PyObject* args, PyObject* kwds) { static PyObject* File_repr(FileObject* self) { const char* path = pakfire_file_get_path(self->file); - return PyUnicode_FromFormat("<_pakfire.Problem %s>", path); + return PyUnicode_FromFormat("<_pakfire.File %s>", path); } static PyObject* File_get_path(FileObject* self) {