projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adef228
)
Fix python binding build on python 3
author
David Malcolm
<dmalcolm@redhat.com>
Wed, 10 Apr 2013 06:47:11 +0000
(09:47 +0300)
committer
Panu 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
patch
|
blob
|
history
diff --git
a/python/rpmfd-py.c
b/python/rpmfd-py.c
index
a266ad6
..
c3ab06f
100644
(file)
--- a/
python/rpmfd-py.c
+++ b/
python/rpmfd-py.c
@@
-230,7
+230,7
@@
static PyObject *rpmfd_read(rpmfdObject *s, PyObject *args, PyObject *kwds)
if (nb > 0) {
PyObject *tmp = PyBytes_FromStringAndSize(buf, nb);
- Py
String
_ConcatAndDel(&res, tmp);
+ Py
Bytes
_ConcatAndDel(&res, tmp);
left -= nb;
}
} while (nb > 0);