Changeset 5069
- Timestamp:
- 04/25/07 02:30:54 (1 year ago)
- Files:
-
- django/trunk/django/utils/datastructures.py (modified) (1 diff)
- django/trunk/tests/regressiontests/datastructures/tests.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/utils/datastructures.py
r5068 r5069 99 99 obj.keyOrder = self.keyOrder 100 100 return obj 101 102 def __repr__(self): 103 """ 104 Replaces the normal dict.__repr__ with a version that returns the keys 105 in their sorted order. 106 """ 107 return '{%s}' % ', '.join(['%r: %r' % (k, v) for k, v in self.items()]) 101 108 102 109 class MultiValueDictKeyError(KeyError): django/trunk/tests/regressiontests/datastructures/tests.py
r4688 r5069 53 53 >>> d.keys() == d.copy().keys() 54 54 True 55 >>> print repr(d) 56 {'one': 'not one', 'two': 'two', 'three': 'three'} 55 57 56 58 ### DotExpandedDict ############################################################
