mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Exercise sorted() where possible
This commit is contained in:
parent
b86269db45
commit
d73ef06cd3
1 changed files with 1 additions and 3 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue