82 uid = self.attribute("uid", "") |
82 uid = self.attribute("uid", "") |
83 if uid: |
83 if uid: |
84 project["uid"] = uid |
84 project["uid"] = uid |
85 else: |
85 else: |
86 # upgrade from pre 5.1 format |
86 # upgrade from pre 5.1 format |
87 from PyQt4.QtCore import QUuid |
87 from PyQt5.QtCore import QUuid |
88 project["uid"] = QUuid.createUuid().toString() |
88 project["uid"] = QUuid.createUuid().toString() |
89 |
89 |
90 while not self.atEnd(): |
90 while not self.atEnd(): |
91 self.readNext() |
91 self.readNext() |
92 if self.isEndElement() and self.name() == "Project": |
92 if self.isEndElement() and self.name() == "Project": |