commit | e0d4972acc8cfd4b8fb16c074a8031e50fab0f29 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sun Jun 02 18:55:56 2002 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sun Jun 02 18:55:56 2002 +0000 |
tree | b9a9286453c2ee4397618d4483679c3bc531f4b0 | |
parent | 1fab9ee085755ed2f7abcf28794d7c20bd51a97a [diff] [blame] |
Replaced .keys() with dictionary iterators
diff --git a/Lib/inspect.py b/Lib/inspect.py index e40ec8d..fdbe16a 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py
@@ -553,7 +553,7 @@ 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)