Xqt added a project: good first bug. Xqt added a comment. |
self.attributes is a dict and the sorting order is not deterministic
https://stackoverflow.com/questions/14956313/why-is-dictionary-ordering-non-deterministic
Probably either an OrderedDict could help or sorting the keys before returning the list:
def saveables(self): """Return a list of saveable attributes.""" return [a for a in sorted(self.attributes) if self.attributes[a][1] and a != 'maxage']
TASK DETAIL
EMAIL PREFERENCES
To: Xqt
Cc: Xqt, Aklapper, pywikibot-bugs-list, Dvorapa, Wenyi, Kieubinhtb, Mahveotm, Asad_Ali_Palijo, Lahi, Soteriaspace, RazeSoldier, JakeTheDeveloper, Tbscho, MayS, Mdupont, JJMC89, TerraCodes, Avicennasis, MuhammadShuaib, SimmeD, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy
Cc: Xqt, Aklapper, pywikibot-bugs-list, Dvorapa, Wenyi, Kieubinhtb, Mahveotm, Asad_Ali_Palijo, Lahi, Soteriaspace, RazeSoldier, JakeTheDeveloper, Tbscho, MayS, Mdupont, JJMC89, TerraCodes, Avicennasis, MuhammadShuaib, SimmeD, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs