1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #3964 -- Added a custom SortedDict.__repr__ so that the keys are printed

in sorted order. Based on a patch from Forest Bond.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5069 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick
2007-04-25 07:30:54 +00:00
parent 535535a45e
commit aca569804e
2 changed files with 9 additions and 0 deletions

View File

@@ -52,6 +52,8 @@
'not one'
>>> d.keys() == d.copy().keys()
True
>>> print repr(d)
{'one': 'not one', 'two': 'two', 'three': 'three'}
### DotExpandedDict ############################################################