summaryrefslogtreecommitdiff
path: root/Lib/inspect.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-06-02 18:55:56 +0000
committerRaymond Hettinger <python@rcn.com>2002-06-02 18:55:56 +0000
commite0d4972acc8cfd4b8fb16c074a8031e50fab0f29 (patch)
treeb9a9286453c2ee4397618d4483679c3bc531f4b0 /Lib/inspect.py
parent1fab9ee085755ed2f7abcf28794d7c20bd51a97a (diff)
downloadcpython-git-e0d4972acc8cfd4b8fb16c074a8031e50fab0f29.tar.gz
Replaced .keys() with dictionary iterators
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r--Lib/inspect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py
index e40ec8df3b..fdbe16a827 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -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)