summaryrefslogtreecommitdiffstats
path: root/Lib/UserDict.py
diff options
context:
space:
mode:
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):