mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
Simplify code, make PyQt6 compatible
This commit is contained in:
parent
59bd0befb5
commit
1cb1051528
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user