commit | 1e8ce58f5d0db22714d65ff440045a7526ed394d | [log] [tgz] |
---|---|---|
author | Skip Montanaro <skip@pobox.com> | Mon Aug 06 21:07:53 2007 +0000 |
committer | Skip Montanaro <skip@pobox.com> | Mon Aug 06 21:07:53 2007 +0000 |
tree | f705fb923334cffa32492a5bddfcca46ecc27f0a | |
parent | 28a181cbe82bc79df3b881b79b19e12b2e39911b [diff] [blame] |
remove most uses of list(somedict.keys()) in Demo scripts
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 @@ 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):