Mercurial > cpython-lru_cache-weakref
diff Lib/UserString.py @ 34818:4eaab38566c9 legacy-trunk
Whitespace normalization.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Mon, 28 Mar 2005 01:08:02 +0000 |
| parents | ac6dfc67c77f |
| children | 29ae5e0fc348 6610d4be8fbd |
line wrap: on
line diff
--- a/Lib/UserString.py Mon Mar 28 01:05:48 2005 +0000 +++ b/Lib/UserString.py Mon Mar 28 01:08:02 2005 +0000 @@ -147,12 +147,12 @@ 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):
