From 890a3edb7e871cacfa2ae26ab449e62198a675bd Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Tue, 3 Dec 2013 12:57:17 -0600 Subject: [PATCH] Fix join issue with python3 --- speedtest_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/speedtest_cli.py b/speedtest_cli.py index 699f756..9a796b4 100755 --- a/speedtest_cli.py +++ b/speedtest_cli.py @@ -310,7 +310,7 @@ def getConfig(): return None uh.close() try: - root = ET.fromstring(''.join(configxml)) + root = ET.fromstring(''.encode().join(configxml)) config = { 'client': root.find('client').attrib, 'times': root.find('times').attrib, @@ -343,7 +343,7 @@ def closestServers(client, all=False): return None uh.close() try: - root = ET.fromstring(''.join(serversxml)) + root = ET.fromstring(''.encode().join(serversxml)) elements = root.getiterator('server') except AttributeError: root = DOM.parseString(''.join(serversxml))