From 3ffb44721018ee43c2e7d09d91e3f6746ba06d86 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Sat, 8 Mar 2014 18:10:42 -0600 Subject: [PATCH] s/tagName/tag_name/g --- speedtest_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/speedtest_cli.py b/speedtest_cli.py index 273302d..032a3a2 100755 --- a/speedtest_cli.py +++ b/speedtest_cli.py @@ -170,14 +170,14 @@ def distance(origin, destination): 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 consistent format Only used with xml.dom.minidom, which is likely only to be used with python versions older than 2.5 """ - elem = dom.getElementsByTagName(tagName)[0] + elem = dom.getElementsByTagName(tag_name)[0] return dict(list(elem.attributes.items()))