Fix join issue with python3

This commit is contained in:
Matt Martz 2013-12-03 12:57:17 -06:00
parent b827ad83c5
commit 890a3edb7e
1 changed files with 2 additions and 2 deletions

View File

@ -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))