mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +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
|
@ -163,7 +163,7 @@ class Class(SymbolTable):
|
|||
d = {}
|
||||
for st in self._table.children:
|
||||
d[st.name] = 1
|
||||
self.__methods = tuple(d.keys())
|
||||
self.__methods = tuple(d)
|
||||
return self.__methods
|
||||
|
||||
class Symbol:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue