From: Dmitry Shachnev Date: Thu, 25 Aug 2016 18:11:37 +0000 (+0300) Subject: Reverted the conversion of bytes to 'const char *' X-Git-Tag: archive/raspbian/5.9+dfsg-2+rpi1~1^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=95b77e654d22258cf2e2e6543c0d99b57a97b4e8;p=pyqt5.git Reverted the conversion of bytes to 'const char *' The latter is not supported by QMetaType and gives QSignalSpy a problem. Patch-Name: bytes_conversion.diff Gbp-Pq: Name bytes_conversion.diff --- diff --git a/qpy/QtCore/qpycore_chimera.cpp b/qpy/QtCore/qpycore_chimera.cpp index 920fee6..2c8f8b8 100644 --- a/qpy/QtCore/qpycore_chimera.cpp +++ b/qpy/QtCore/qpycore_chimera.cpp @@ -416,11 +416,6 @@ bool Chimera::parse_py_type(PyTypeObject *type_obj) _type = sipType_QString; _metatype = QMetaType::QString; } - else if (type_obj == &PyBytes_Type) - { - _metatype = -1; - _name = "const char*"; - } #else else if (type_obj == &PyString_Type || type_obj == &PyUnicode_Type) {