From 6cc14a05d203868b84418a06d6c8254a4470e448 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Wed, 6 Feb 2008 22:14:55 +0000 Subject: MutableSequence requires an insert() method. --- Lib/UserString.py | 2 ++ 1 file changed, 2 insertions(+) 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 @@ class MutableString(UserString, collections.MutableSequence): def __imul__(self, n): self.data *= n return self + def insert(self, index, value): + self[index:index] = value collections.MutableSequence.register(MutableString) -- cgit v0.12