mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
remove most uses of list(somedict.keys()) in Demo scripts
This commit is contained in:
parent
28a181cbe8
commit
1e8ce58f5d
17 changed files with 31 additions and 46 deletions
|
|
@ -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>')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue