From: Zac Medico Date: Wed, 25 Jun 2008 22:39:00 +0000 (-0000) Subject: Fix KeyError constructor style. X-Git-Tag: v2.2_rc2~329 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f29290f91175fa3704287afb99d14d78db783545;p=portage.git Fix KeyError constructor style. svn path=/main/trunk/; revision=10792 --- diff --git a/pym/portage/cache/mappings.py b/pym/portage/cache/mappings.py index 19673e36e..e971177a4 100644 --- a/pym/portage/cache/mappings.py +++ b/pym/portage/cache/mappings.py @@ -208,7 +208,7 @@ def slot_dict_class(keys): try: k, v = self.iteritems().next() except StopIteration: - raise KeyError, 'container is empty' + raise KeyError('container is empty') del self[k] return (k, v)