summaryrefslogtreecommitdiffstats
path: root/pym/portage_compat_namespace.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage_compat_namespace.py')
-rw-r--r--pym/portage_compat_namespace.py2
1 files changed, 1 insertions, 1 deletions
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):