mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +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
|
|
@ -324,7 +324,7 @@ def readmodule_ex(module, path=[], inpackage=0):
|
|||
# Python does internally)
|
||||
# also don't add names that
|
||||
# start with _
|
||||
for n in d.keys():
|
||||
for n in d:
|
||||
if n[0] != '_' and \
|
||||
not n in dict:
|
||||
dict[n] = d[n]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue