From 1251671ed0f6e40a72d3db23caa7fd614877198b Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 3 Jan 2008 19:42:36 +0000 Subject: [PATCH] replaced unneccesary loop with API call git-svn-id: svn://svn.open-ils.org/ILS/trunk@8309 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/python/oils/utils/idl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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): -- 2.11.0