diff options
author | Tim Peters <tim.peters@gmail.com> | 2005-03-28 01:08:02 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2005-03-28 01:08:02 (GMT) |
commit | eba28bea9b8ef7df010e65c630b8c0f7009c6005 (patch) | |
tree | 9ec2d5adb6886c2577a8c20e4e51d6d7ed393ec4 /Lib/UserString.py | |
parent | 700f36c7520bffef73d86088fa80b7a1c62c416a (diff) | |
download | cpython-eba28bea9b8ef7df010e65c630b8c0f7009c6005.zip cpython-eba28bea9b8ef7df010e65c630b8c0f7009c6005.tar.gz cpython-eba28bea9b8ef7df010e65c630b8c0f7009c6005.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib/UserString.py')
-rwxr-xr-x | Lib/UserString.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/UserString.py b/Lib/UserString.py index 3251139..94eb66d 100755 --- a/Lib/UserString.py +++ b/Lib/UserString.py @@ -147,12 +147,12 @@ class MutableString(UserString): raise TypeError, "unhashable type (it is mutable)" def __setitem__(self, index, sub): if index < 0: - index += len(self.data) + index += len(self.data) if index < 0 or index >= len(self.data): raise IndexError self.data = self.data[:index] + sub + self.data[index+1:] def __delitem__(self, index): if index < 0: - index += len(self.data) + index += len(self.data) if index < 0 or index >= len(self.data): raise IndexError self.data = self.data[:index] + self.data[index+1:] def __setslice__(self, start, end, sub): |