summaryrefslogtreecommitdiffstats
path: root/pym/repoman
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-04-13 19:47:13 -0700
committerZac Medico <zmedico@gentoo.org>2012-04-13 19:47:13 -0700
commit4fd43df42a9705bdb7681f4d67fb49b8da24a5d9 (patch)
tree9fa331a0e6244ede37effc81c20b724eb6444c9b /pym/repoman
parentef19d0fba35b1fff37257b70b3bd7c77b0b4e845 (diff)
downloadportage-4fd43df42a9705bdb7681f4d67fb49b8da24a5d9.tar.gz
portage-4fd43df42a9705bdb7681f4d67fb49b8da24a5d9.tar.bz2
portage-4fd43df42a9705bdb7681f4d67fb49b8da24a5d9.zip
Handle SystemError when importing xml libraries.
Diffstat (limited to 'pym/repoman')
-rw-r--r--pym/repoman/herdbase.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/repoman/herdbase.py b/pym/repoman/herdbase.py
index 8ce36a704..91a32cb00 100644
--- a/pym/repoman/herdbase.py
+++ b/pym/repoman/herdbase.py
@@ -1,13 +1,13 @@
# -*- coding: utf-8 -*-
# repoman: Herd database analysis
-# Copyright 2010-2011 Gentoo Foundation
+# Copyright 2010-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2 or later
import errno
import xml.etree.ElementTree
try:
from xml.parsers.expat import ExpatError
-except ImportError:
+except (ImportError, SystemError):
# This means that python is built without xml support.
# We tolerate global scope import failures for optional
# modules, so that ImportModulesTestCase can succeed (or