mirror of https://github.com/django/django.git
Fixed a Python 2.3 problem from [6927].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6928 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
03f1eb23e5
commit
4a25cf5d95
|
@ -415,7 +415,9 @@ UnicodeEncodeError: ..., HTTP response headers must be in US-ASCII format
|
|||
The response also converts unicode keys to strings.
|
||||
|
||||
>>> r[u'test'] = 'testing key'
|
||||
>>> list(sorted(r.items()))[1]
|
||||
>>> l = list(r.items())
|
||||
>>> l.sort()
|
||||
>>> l[1]
|
||||
('test', 'testing key')
|
||||
|
||||
It will also raise errors for keys with non-ascii data.
|
||||
|
|
Loading…
Reference in New Issue