Fix join issue with python3
This commit is contained in:
parent
b827ad83c5
commit
890a3edb7e
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue