commit | 6cc14a05d203868b84418a06d6c8254a4470e448 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Wed Feb 06 22:14:55 2008 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Wed Feb 06 22:14:55 2008 +0000 |
tree | 9614ffdd32bcb21fbd511a0b3e6e25513bad69f0 | |
parent | b8b6d3ef40a355cb7e6256d3e3eb4edd904b05c9 [diff] [blame] |
MutableSequence requires an insert() method.
diff --git a/Lib/UserString.py b/Lib/UserString.py index 615c135..c3267ad 100755 --- a/Lib/UserString.py +++ b/Lib/UserString.py
@@ -232,6 +232,8 @@ def __imul__(self, n): self.data *= n return self + def insert(self, index, value): + self[index:index] = value collections.MutableSequence.register(MutableString)