summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2008-08-15 16:54:56 +0000
committerAlec Warner <antarus@gentoo.org>2008-08-15 16:54:56 +0000
commit3ddbf249e77db4196dd8d742a0f86d18bf20b8bb (patch)
tree3f67b00b43d5d17ad2071b12e84fd30dbc91ec6d /users
parentadding my handy dandy script that generates the current use.local.desc (diff)
downloadgentoo-3ddbf249e77db4196dd8d742a0f86d18bf20b8bb.tar.gz
gentoo-3ddbf249e77db4196dd8d742a0f86d18bf20b8bb.tar.bz2
gentoo-3ddbf249e77db4196dd8d742a0f86d18bf20b8bb.zip
Style prohibits importing single items out of a module; fix ExpatError import and subsequent usage.
Diffstat (limited to 'users')
-rw-r--r--users/antarus/projects/infra/use_desc_gen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/users/antarus/projects/infra/use_desc_gen.py b/users/antarus/projects/infra/use_desc_gen.py
index 3204739b32..036b8c9e40 100644
--- a/users/antarus/projects/infra/use_desc_gen.py
+++ b/users/antarus/projects/infra/use_desc_gen.py
@@ -25,7 +25,7 @@ import re
import sys
from xml.dom import minidom
-from xml.parsers.expat import ExpatError
+from xml.parsers import expat
METADATA_XML = 'metadata.xml'
@@ -121,7 +121,7 @@ def GetLocalFlagInfoFromMetadataXml(metadata_file):
try:
dom_tree = minidom.parseString(metadata_file.read())
- except ExpatError, e:
+ except expat.ExpatError, e:
logging.error('%s (in file: %s)' % (e, metadata_file))
return d