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/scripts/newslist.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/scripts/newslist.py')
| -rwxr-xr-x | Demo/scripts/newslist.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Demo/scripts/newslist.py b/Demo/scripts/newslist.py index 4635f1d..7038380 100755 --- a/Demo/scripts/newslist.py +++ b/Demo/scripts/newslist.py @@ -172,10 +172,9 @@ def printtree(f, tree, indent, p): createpage(p[1:], tree, p) return - kl = list(tree.keys()) + kl = sorted(tree.keys()) if l > 1: - kl.sort() if indent > 0: # Create a sub-list f.write('<LI>'+p[1:]+'\n<UL>') |
