[Python-modules-commits] [pyqt5] 01/02: Reverted the conversion of bytes to 'const char *'

Dmitry Shachnev mitya57 at moszumanska.debian.org
Thu Aug 25 18:31:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

mitya57 pushed a commit to branch master
in repository pyqt5.

commit d56759aaff209204957b25a5449de33efb7718ea
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Thu Aug 25 21:11:37 2016 +0300

    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
---
 qpy/QtCore/qpycore_chimera.cpp | 5 -----
 1 file changed, 5 deletions(-)

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)
     {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pyqt5.git



More information about the Python-modules-commits mailing list