s/tagName/tag_name/g

This commit is contained in:
Matt Martz 2014-03-08 18:10:42 -06:00
parent 1f16fb3cfe
commit 3ffb447210
1 changed files with 2 additions and 2 deletions

View File

@ -170,14 +170,14 @@ def distance(origin, destination):
return d return d
def get_attributes_by_tag_name(dom, tagName): def get_attributes_by_tag_name(dom, tag_name):
"""Retrieve an attribute from an XML document and return it in a """Retrieve an attribute from an XML document and return it in a
consistent format consistent format
Only used with xml.dom.minidom, which is likely only to be used Only used with xml.dom.minidom, which is likely only to be used
with python versions older than 2.5 with python versions older than 2.5
""" """
elem = dom.getElementsByTagName(tagName)[0] elem = dom.getElementsByTagName(tag_name)[0]
return dict(list(elem.attributes.items())) return dict(list(elem.attributes.items()))