diff options
Diffstat (limited to 'Lib/collections/abc.py')
-rw-r--r-- | Lib/collections/abc.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/collections/abc.py b/Lib/collections/abc.py index c23b7dd..18c07bf 100644 --- a/Lib/collections/abc.py +++ b/Lib/collections/abc.py @@ -430,8 +430,7 @@ class KeysView(MappingView, Set): return key in self._mapping def __iter__(self): - for key in self._mapping: - yield key + yield from self._mapping KeysView.register(dict_keys) |