Simplify code, make PyQt6 compatible

This commit is contained in:
Nyall Dawson 2024-01-28 08:52:05 +10:00
parent 59bd0befb5
commit 1cb1051528

View File

@ -349,11 +349,7 @@ class Repositories(QObject):
reposXML = QDomDocument()
content = reply.readAll()
# Fix lonely ampersands in metadata
a = QByteArray()
a.append("& ")
b = QByteArray()
b.append("& ")
content = content.replace(a, b)
content = content.replace(b"& ", b"& ")
reposXML.setContent(content)
plugins_tag = reposXML.elementsByTagName("plugins")
if plugins_tag.size():