Fix KeyError constructor style.
authorZac Medico <zmedico@gentoo.org>
Wed, 25 Jun 2008 22:39:00 +0000 (22:39 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 25 Jun 2008 22:39:00 +0000 (22:39 -0000)
svn path=/main/trunk/; revision=10792

pym/portage/cache/mappings.py

index 19673e36ed8b408c007d2bdfe1c1546c8f547deb..e971177a4052192b48593a517a2166d70596db90 100644 (file)
@@ -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)