summaryrefslogtreecommitdiffstats
path: root/Demo/pdist/rrcs.py
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2007-08-06 21:07:53 (GMT)
committerSkip Montanaro <skip@pobox.com>2007-08-06 21:07:53 (GMT)
commit1e8ce58f5d0db22714d65ff440045a7526ed394d (patch)
treef705fb923334cffa32492a5bddfcca46ecc27f0a /Demo/pdist/rrcs.py
parent28a181cbe82bc79df3b881b79b19e12b2e39911b (diff)
downloadcpython-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-xDemo/pdist/rrcs.py8
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):