error in Python 2.4 test
This commit is contained in:
parent
c80e7e1617
commit
3b8ddb5ea2
|
@ -445,7 +445,7 @@ def closestServers(client, all=False):
|
|||
root = ET.fromstring(''.encode().join(serversxml))
|
||||
elements = root.getiterator('server')
|
||||
except AttributeError: # Python3 branch
|
||||
root = DOM.parseString(''.join(serversxml))
|
||||
root = DOM.parseString(''.encode().join(serversxml))
|
||||
elements = root.getElementsByTagName('server')
|
||||
except SyntaxError:
|
||||
raise SpeedtestCliServerListError
|
||||
|
|
Loading…
Reference in New Issue