mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-10-21 11:34:12 +02:00
s/tagName/tag_name/g
This commit is contained in:
+2
-2
@@ -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()))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user