summaryrefslogtreecommitdiffstats
path: root/Lib/_abcoll.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-05-18 15:35:26 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-05-18 15:35:26 (GMT)
commitc384b226d765d5f57a909df8da3f4fcdfb4b7246 (patch)
treecc94def5d4f278d8448ee829846293344e84d650 /Lib/_abcoll.py
parent93fb3aad505d5f344f8ebf8da52ae9096f13e0ba (diff)
downloadcpython-c384b226d765d5f57a909df8da3f4fcdfb4b7246.zip
cpython-c384b226d765d5f57a909df8da3f4fcdfb4b7246.tar.gz
cpython-c384b226d765d5f57a909df8da3f4fcdfb4b7246.tar.bz2
Issue 6037: MutableSequence.__iadd__ should return self.
Diffstat (limited to 'Lib/_abcoll.py')
-rw-r--r--Lib/_abcoll.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py
index 7b01178..a60d91e 100644
--- a/Lib/_abcoll.py
+++ b/Lib/_abcoll.py
@@ -598,6 +598,7 @@ class MutableSequence(Sequence):
def __iadd__(self, values):
self.extend(values)
+ return self
MutableSequence.register(list)
MutableSequence.register(bytearray) # Multiply inheriting, see ByteString