diff options
author | Raymond Hettinger <python@rcn.com> | 2002-06-02 18:55:56 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-06-02 18:55:56 (GMT) |
commit | e0d4972acc8cfd4b8fb16c074a8031e50fab0f29 (patch) | |
tree | b9a9286453c2ee4397618d4483679c3bc531f4b0 /Lib/rlcompleter.py | |
parent | 1fab9ee085755ed2f7abcf28794d7c20bd51a97a (diff) | |
download | cpython-e0d4972acc8cfd4b8fb16c074a8031e50fab0f29.zip cpython-e0d4972acc8cfd4b8fb16c074a8031e50fab0f29.tar.gz cpython-e0d4972acc8cfd4b8fb16c074a8031e50fab0f29.tar.bz2 |
Replaced .keys() with dictionary iterators
Diffstat (limited to 'Lib/rlcompleter.py')
-rw-r--r-- | Lib/rlcompleter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/rlcompleter.py b/Lib/rlcompleter.py index d8208f3..3075a14 100644 --- a/Lib/rlcompleter.py +++ b/Lib/rlcompleter.py @@ -104,8 +104,8 @@ class Completer: matches = [] n = len(text) for list in [keyword.kwlist, - __builtin__.__dict__.keys(), - self.namespace.keys()]: + __builtin__.__dict__, + self.namespace]: for word in list: if word[:n] == text and word != "__builtins__": matches.append(word) |