Fix python binding build on python 3
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 10 Apr 2013 06:47:11 +0000 (09:47 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 7 Jun 2013 07:36:07 +0000 (10:36 +0300)
- Fixes PyString caused breakage from commit
  cb84c0db42db105116072cb71d89152e885e2e2c

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
(cherry picked from commit 5fc863ee1e28479accb0e034442f88d15de84031)

python/rpmfd-py.c

index a266ad6..c3ab06f 100644 (file)
@@ -230,7 +230,7 @@ static PyObject *rpmfd_read(rpmfdObject *s, PyObject *args, PyObject *kwds)
 
        if (nb > 0) {
            PyObject *tmp = PyBytes_FromStringAndSize(buf, nb);
-           PyString_ConcatAndDel(&res, tmp);
+           PyBytes_ConcatAndDel(&res, tmp);
            left -= nb;
        }
     } while (nb > 0);