Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a Python 2.3 problem from [6927].

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6928 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4a25cf5d95d29f77160c56b723da5b8ce3a8d8a3 1 parent 03f1eb2
Malcolm Tredinnick malcolmt authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/regressiontests/httpwrappers/tests.py
4 tests/regressiontests/httpwrappers/tests.py
View
@@ -415,7 +415,9 @@
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.
Please sign in to comment.
Something went wrong with that request. Please try again.