mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Replaced .keys() with dictionary iterators
This commit is contained in:
parent
1fab9ee085
commit
e0d4972acc
9 changed files with 46 additions and 50 deletions
|
@ -553,7 +553,7 @@ def getclasstree(classes, unique=0):
|
|||
if unique and parent in classes: break
|
||||
elif c not in roots:
|
||||
roots.append(c)
|
||||
for parent in children.keys():
|
||||
for parent in children:
|
||||
if parent not in classes:
|
||||
roots.append(parent)
|
||||
return walktree(roots, children, None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue