mirror of
https://github.com/python/cpython.git
synced 2025-07-31 15:14:22 +00:00
remove most uses of list(somedict.keys()) in Demo scripts
This commit is contained in:
parent
28a181cbe8
commit
1e8ce58f5d
17 changed files with 31 additions and 46 deletions
|
@ -87,7 +87,7 @@ def test():
|
|||
return
|
||||
if debug: print('done.')
|
||||
if debug > 1:
|
||||
for key in list(m.trans.keys()):
|
||||
for key in m.trans.keys():
|
||||
if key is None or len(key) < histsize:
|
||||
print(repr(key), m.trans[key])
|
||||
if histsize == 0: print(repr(''), m.trans[''])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue