summaryrefslogtreecommitdiffstats
path: root/Lib/collections/abc.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/collections/abc.py')
-rw-r--r--Lib/collections/abc.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/collections/abc.py b/Lib/collections/abc.py
index 7939268..a8681ea 100644
--- a/Lib/collections/abc.py
+++ b/Lib/collections/abc.py
@@ -454,8 +454,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)
@@ -663,7 +662,7 @@ class MutableSequence(Sequence):
__slots__ = ()
- """All the operations on a read-only sequence.
+ """All the operations on a read-write sequence.
Concrete subclasses must provide __new__ or __init__,
__getitem__, __setitem__, __delitem__, __len__, and insert().