From 3f7369f9f1234c4765c72917a2258cc0ee369a74 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 2 Jul 2008 22:44:03 +0000 Subject: [PATCH] Fix broken except statement. Thanks to hawking. svn path=/main/trunk/; revision=10896 --- pym/portage_compat_namespace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage_compat_namespace.py b/pym/portage_compat_namespace.py index b6c3da569..07f22a95e 100644 --- a/pym/portage_compat_namespace.py +++ b/pym/portage_compat_namespace.py @@ -28,7 +28,7 @@ else: try: __package = __import__(__newname, globals(), locals()) __realmodule = getattr(__package, __newname[8:]) -except ImportError, AttributeError: +except (ImportError, AttributeError): raise ImportError("No module named %s" % __oldname) def _formatwarning(message, category, filename, lineno): -- 2.26.2