From: erickson Date: Thu, 3 Jan 2008 19:42:36 +0000 (+0000) Subject: replaced unneccesary loop with API call X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1251671ed0f6e40a72d3db23caa7fd614877198b;p=Evergreen.git replaced unneccesary loop with API call git-svn-id: svn://svn.open-ils.org/ILS/trunk@8309 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/python/oils/utils/idl.py b/Open-ILS/src/python/oils/utils/idl.py index c918333e84..77d97880f2 100644 --- a/Open-ILS/src/python/oils/utils/idl.py +++ b/Open-ILS/src/python/oils/utils/idl.py @@ -47,9 +47,9 @@ class oilsIDLParser(object): Namespace is ignored for now.. not sure if minidom has namespace support. """ - for (k, v) in node.attributes.items(): - if k == name: - return v + attr = node.attributes.get(name) + if attr: + return attr.nodeValue return None def parseIDL(self):