We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4f8b00 commit de3c0feCopy full SHA for de3c0fe
generator/typesystem_core.xml
@@ -1160,7 +1160,7 @@
1160
1161
<inject-code class="pywrap-h">
1162
PyObject* data(QByteArray* b) {
1163
- return PyString_FromStringAndSize(b->data(), b->size());
+ return PyBytes_FromStringAndSize(b->data(), b->size());
1164
}
1165
</inject-code>
1166
@@ -1945,7 +1945,7 @@
1945
r.resize(len);
1946
int result = d->readRawData(r.data(), r.size());
1947
if (result>=0) {
1948
- return PyString_FromStringAndSize(r.data(), result);
+ return PyBytes_FromStringAndSize(r.data(), result);
1949
} else {
1950
Py_INCREF(Py_None);
1951
return Py_None;
0 commit comments