Exercise sorted() where possible

This commit is contained in:
Raymond Hettinger 2004-01-04 11:14:51 +00:00
parent b86269db45
commit d73ef06cd3

View file

@ -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]