summaryrefslogtreecommitdiffstats
path: root/Lib/UserDict.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-30 01:19:48 (GMT)
committerCollin Winter <collinw@gmail.com>2007-08-30 01:19:48 (GMT)
commitce36ad8a467d914eb5c91f33835b9eaea18ee93b (patch)
tree05bf654f3359e20b455dc300bd860bba5d291c8d /Lib/UserDict.py
parent8b3febef2f96c35e9aad9db2ef499db040fdefae (diff)
downloadcpython-ce36ad8a467d914eb5c91f33835b9eaea18ee93b.zip
cpython-ce36ad8a467d914eb5c91f33835b9eaea18ee93b.tar.gz
cpython-ce36ad8a467d914eb5c91f33835b9eaea18ee93b.tar.bz2
Raise statement normalization in Lib/.
Diffstat (limited to 'Lib/UserDict.py')
-rw-r--r--Lib/UserDict.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/UserDict.py b/Lib/UserDict.py
index bcee543..bc05dfb 100644
--- a/Lib/UserDict.py
+++ b/Lib/UserDict.py
@@ -127,8 +127,8 @@ class DictMixin:
return default
def pop(self, key, *args):
if len(args) > 1:
- raise TypeError, "pop expected at most 2 arguments, got "\
- + repr(1 + len(args))
+ raise TypeError("pop expected at most 2 arguments, got "
+ + repr(1 + len(args)))
try:
value = self[key]
except KeyError:
@@ -141,7 +141,7 @@ class DictMixin:
try:
k, v = next(self.iteritems())
except StopIteration:
- raise KeyError, 'container is empty'
+ raise KeyError('container is empty')
del self[k]
return (k, v)
def update(self, other=None, **kwargs):