py3: fix drag & drop in the Repository Registry
Before this change, dragging & dropping repositories across groups in the registry was not working on py3: at drop, the message b'Start tag expected.' was printed in the console, but nothing happened. The reason is that QMimeData::data() returns a QByteArray containing an XML document that was passed through str() and directly fed to repotreemodel.readXml(), which instead expects either a unicode string or bytes. This change converts the QByteArray to bytes(), and restores the drag & drop functionality in the Repo Registry. --HG-- branch : stable
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
Test | |||||||||
failed |
#86701
allowed to fail
|
pytype-py3-hg-default |
00:00:38
|
|
|||||
failed |
#86700
allowed to fail
|
pytype-py3-hg-stable |
00:00:39
|
|
|||||
passed |
#86692
|
tests-py2-hg-5.3 |
00:02:33
|
|
|||||
passed |
#86693
|
tests-py2-hg-5.4 |
00:02:35
|
|
|||||
failed |
#86695
allowed to fail
|
tests-py2-hg-default |
00:01:18
|
|
|||||
failed |
#86694
|
tests-py2-hg-stable |
00:01:17
|
|
|||||
failed |
#86696
allowed to fail
|
tests-py3-hg-5.3 |
00:00:43
|
|
|||||
failed |
#86697
allowed to fail
|
tests-py3-hg-5.4 |
00:01:17
|
|
|||||
failed |
#86699
allowed to fail
|
tests-py3-hg-default |
00:01:16
|
|
|||||
failed |
#86698
allowed to fail
|
tests-py3-hg-stable |
00:01:52
|
|
|||||
Name | Stage | Failure | ||
---|---|---|---|---|
failed
|
pytype-py3-hg-default | Test | ||
|
||||
failed
|
tests-py3-hg-stable | Test | ||
|
||||
failed
|
pytype-py3-hg-stable | Test | ||
|
||||
failed
|
tests-py3-hg-default | Test | ||
|
||||
failed
|
tests-py3-hg-5.4 | Test | ||
|
||||
failed
|
tests-py3-hg-5.3 | Test | ||
|
||||
failed
|
tests-py2-hg-default | Test | ||
|
||||
failed
|
tests-py2-hg-stable | Test | ||
|