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
https://phabricator.wikimedia.org/T213804

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

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
_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to