diff options
author | Skip Montanaro <skip@pobox.com> | 2007-08-06 21:07:53 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2007-08-06 21:07:53 (GMT) |
commit | 1e8ce58f5d0db22714d65ff440045a7526ed394d (patch) | |
tree | f705fb923334cffa32492a5bddfcca46ecc27f0a /Demo/pdist/rrcs.py | |
parent | 28a181cbe82bc79df3b881b79b19e12b2e39911b (diff) | |
download | cpython-1e8ce58f5d0db22714d65ff440045a7526ed394d.zip cpython-1e8ce58f5d0db22714d65ff440045a7526ed394d.tar.gz cpython-1e8ce58f5d0db22714d65ff440045a7526ed394d.tar.bz2 |
remove most uses of list(somedict.keys()) in Demo scripts
Diffstat (limited to 'Demo/pdist/rrcs.py')
-rwxr-xr-x | Demo/pdist/rrcs.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Demo/pdist/rrcs.py b/Demo/pdist/rrcs.py index 8d0ef03..647ecc5 100755 --- a/Demo/pdist/rrcs.py +++ b/Demo/pdist/rrcs.py @@ -71,11 +71,9 @@ def unlock(x, copts, fn): x.unlock(fn) def info(x, copts, fn): - dict = x.info(fn) - keys = list(dict.keys()) - keys.sort() - for key in keys: - print(key + ':', dict[key]) + info_dict = x.info(fn) + for key in sorted(info_dict.keys()): + print(key + ':', info_dict[key]) print('='*70) def head(x, copts, fn): |