summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-01-04 11:14:51 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-01-04 11:14:51 (GMT)
commitd73ef06cd30eea20f121a79984b8c0c762cb4373 (patch)
tree7e1a730bc6ebba9a1bc1bd0cb3c6306ca4dc77a1 /Lib
parentb86269db458f63b95be8017e47671092be3b48d1 (diff)
downloadcpython-d73ef06cd30eea20f121a79984b8c0c762cb4373.zip
cpython-d73ef06cd30eea20f121a79984b8c0c762cb4373.tar.gz
cpython-d73ef06cd30eea20f121a79984b8c0c762cb4373.tar.bz2
Exercise sorted() where possible
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_cookie.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_cookie.py b/Lib/test/test_cookie.py
index 65b0645..3e80b6f 100644
--- a/Lib/test/test_cookie.py
+++ b/Lib/test/test_cookie.py
@@ -23,9 +23,7 @@ for data, dict in cases:
C = Cookie.SimpleCookie() ; C.load(data)
print repr(C)
print str(C)
- items = dict.items()
- items.sort()
- for k, v in items:
+ for k, v in sorted(dict.iteritems()):
print ' ', k, repr( C[k].value ), repr(v)
verify(C[k].value == v)
print C[k]