summaryrefslogtreecommitdiffstats
path: root/pym/portage/xml
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/xml')
-rw-r--r--pym/portage/xml/metadata.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage/xml/metadata.py b/pym/portage/xml/metadata.py
index bed6a1e55..25f801a47 100644
--- a/pym/portage/xml/metadata.py
+++ b/pym/portage/xml/metadata.py
@@ -1,4 +1,4 @@
-# Copyright 2010-2011 Gentoo Foundation
+# Copyright 2010-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
"""Provides an easy-to-use python interface to Gentoo's metadata.xml file.
@@ -42,12 +42,12 @@ if sys.hexversion < 0x2070000 or \
else:
try:
import xml.etree.cElementTree as etree
- except ImportError:
+ except (ImportError, SystemError):
import xml.etree.ElementTree as etree
try:
from xml.parsers.expat import ExpatError
-except ImportError:
+except (ImportError, SystemError):
ExpatError = SyntaxError
import re