Fix join issue with python3
This commit is contained in:
		
							parent
							
								
									b827ad83c5
								
							
						
					
					
						commit
						890a3edb7e
					
				|  | @ -310,7 +310,7 @@ def getConfig(): | ||||||
|         return None |         return None | ||||||
|     uh.close() |     uh.close() | ||||||
|     try: |     try: | ||||||
|         root = ET.fromstring(''.join(configxml)) |         root = ET.fromstring(''.encode().join(configxml)) | ||||||
|         config = { |         config = { | ||||||
|             'client': root.find('client').attrib, |             'client': root.find('client').attrib, | ||||||
|             'times': root.find('times').attrib, |             'times': root.find('times').attrib, | ||||||
|  | @ -343,7 +343,7 @@ def closestServers(client, all=False): | ||||||
|         return None |         return None | ||||||
|     uh.close() |     uh.close() | ||||||
|     try: |     try: | ||||||
|         root = ET.fromstring(''.join(serversxml)) |         root = ET.fromstring(''.encode().join(serversxml)) | ||||||
|         elements = root.getiterator('server') |         elements = root.getiterator('server') | ||||||
|     except AttributeError: |     except AttributeError: | ||||||
|         root = DOM.parseString(''.join(serversxml)) |         root = DOM.parseString(''.join(serversxml)) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue