summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Madden <jamadden@gmail.com>2017-12-18 11:22:21 -0600
committerJason Madden <jamadden@gmail.com>2017-12-18 11:22:21 -0600
commit5a84f3710ab6c6b7e9d3e0f04cc5e03377dfbbea (patch)
tree3a0f0ffc3af3e2c3c8ff7d7dafdb8f7f80d753e9
parent222fe4acfca0bd102b9cd657754477e88318c2e8 (diff)
downloadzope-i18n-5a84f3710ab6c6b7e9d3e0f04cc5e03377dfbbea.tar.gz
Sort all the things, since dicts are inherently unordered.
-rw-r--r--src/zope/i18n/locales/inheritance.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zope/i18n/locales/inheritance.py b/src/zope/i18n/locales/inheritance.py
index 0075b66..8489d7d 100644
--- a/src/zope/i18n/locales/inheritance.py
+++ b/src/zope/i18n/locales/inheritance.py
@@ -174,9 +174,9 @@ class InheritingDictionary(Inheritance, dict):
'ii'
>>> locale.data2.dict.get(4) is None
True
- >>> locale.data.keys()
+ >>> sorted(locale.data.keys())
[1, 2, 3]
- >>> list(locale.data.items())
+ >>> sorted(locale.data.items())
[(1, 'eins'), (2, 'two'), (3, 'three')]
We also override ``values``::