mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +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
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue