E5XML/ProjectWriter.py

branch
5_1_x
changeset 1293
df49ba5a3103
parent 791
9ec2ac20e54e
child 1510
e75ecf2bd9dd
equal deleted inserted replaced
1291:d6ad28f5d85c 1293:df49ba5a3103
159 self.writeBasics("VcsOtherData", self.pdata["VCSOTHERDATA"][0]) 159 self.writeBasics("VcsOtherData", self.pdata["VCSOTHERDATA"][0])
160 self.writeEndElement() 160 self.writeEndElement()
161 161
162 # do the filetype associations 162 # do the filetype associations
163 self.writeStartElement("FiletypeAssociations") 163 self.writeStartElement("FiletypeAssociations")
164 for pattern, filetype in list(self.pdata["FILETYPES"].items()): 164 for pattern, filetype in sorted(self.pdata["FILETYPES"].items()):
165 self.writeEmptyElement("FiletypeAssociation") 165 self.writeEmptyElement("FiletypeAssociation")
166 self.writeAttribute("pattern", pattern) 166 self.writeAttribute("pattern", pattern)
167 self.writeAttribute("type", filetype) 167 self.writeAttribute("type", filetype)
168 self.writeEndElement() 168 self.writeEndElement()
169 169
170 # do the lexer associations 170 # do the lexer associations
171 if self.pdata["LEXERASSOCS"]: 171 if self.pdata["LEXERASSOCS"]:
172 self.writeStartElement("LexerAssociations") 172 self.writeStartElement("LexerAssociations")
173 for pattern, lexer in list(self.pdata["LEXERASSOCS"].items()): 173 for pattern, lexer in sorted(self.pdata["LEXERASSOCS"].items()):
174 self.writeEmptyElement("LexerAssociation") 174 self.writeEmptyElement("LexerAssociation")
175 self.writeAttribute("pattern", pattern) 175 self.writeAttribute("pattern", pattern)
176 self.writeAttribute("lexer", lexer) 176 self.writeAttribute("lexer", lexer)
177 self.writeEndElement() 177 self.writeEndElement()
178 178

eric ide

mercurial