[Checkins] SVN: zope.schema/trunk/ Defend against hash randomization effects.
Tres Seaver
cvs-admin at zope.org
Wed Nov 21 19:45:21 UTC 2012
Log message for revision 128409:
Defend against hash randomization effects.
Changed:
_U zope.schema/trunk/
U zope.schema/trunk/src/zope/schema/vocabulary.py
-=-
Modified: zope.schema/trunk/src/zope/schema/vocabulary.py
===================================================================
--- zope.schema/trunk/src/zope/schema/vocabulary.py 2012-11-21 19:45:20 UTC (rev 128408)
+++ zope.schema/trunk/src/zope/schema/vocabulary.py 2012-11-21 19:45:21 UTC (rev 128409)
@@ -147,7 +147,7 @@
See fromDict for more details.
"""
- for key in dict_.keys():
+ for key in sorted(dict_.keys()):
term = SimpleTerm(key[1], key[0], key[-1])
ttree[term] = TreeVocabulary.terms_factory()
_createTermTree(ttree[term], dict_[key])
More information about the checkins
mailing list