summaryrefslogtreecommitdiffstats
path: root/Lib/UserString.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-30 18:18:27 (GMT)
committerCollin Winter <collinw@gmail.com>2007-08-30 18:18:27 (GMT)
commit4902e69e40b7f73bbb5e02a64260a8cf03651c80 (patch)
tree12a2c1b76a83be906e764c5d36e3055232ef70da /Lib/UserString.py
parent6cd2a2036db68874bdf66502f38f33c1824c9e65 (diff)
downloadcpython-4902e69e40b7f73bbb5e02a64260a8cf03651c80.zip
cpython-4902e69e40b7f73bbb5e02a64260a8cf03651c80.tar.gz
cpython-4902e69e40b7f73bbb5e02a64260a8cf03651c80.tar.bz2
More raise statement normalization.
Diffstat (limited to 'Lib/UserString.py')
-rwxr-xr-xLib/UserString.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/UserString.py b/Lib/UserString.py
index c55c1bf..de50396 100755
--- a/Lib/UserString.py
+++ b/Lib/UserString.py
@@ -197,7 +197,7 @@ class MutableString(UserString):
elif step != 1:
# XXX(twouters): I guess we should be reimplementing
# the extended slice assignment/deletion algorithm here...
- raise TypeError, "invalid step in slicing assignment"
+ raise TypeError("invalid step in slicing assignment")
start = min(start, stop)
self.data = self.data[:start] + sub + self.data[stop:]
else:
@@ -212,7 +212,7 @@ class MutableString(UserString):
start, stop = stop+1, start+1
elif step != 1:
# XXX(twouters): see same block in __setitem__
- raise TypeError, "invalid step in slicing deletion"
+ raise TypeError("invalid step in slicing deletion")
start = min(start, stop)
self.data = self.data[:start] + self.data[stop:]
else: