From ce36ad8a467d914eb5c91f33835b9eaea18ee93b Mon Sep 17 00:00:00 2001 From: Collin Winter Date: Thu, 30 Aug 2007 01:19:48 +0000 Subject: Raise statement normalization in Lib/. --- Lib/UserDict.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Lib/UserDict.py') diff --git a/Lib/UserDict.py b/Lib/UserDict.py index bcee543bab..bc05dfb628 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): -- cgit v1.2.1