From c6732635a9027d16550725b0b2f5fc59f8cf86be Mon Sep 17 00:00:00 2001 From: eberloso Date: Wed, 26 Jun 2024 09:09:16 +0200 Subject: [PATCH] FInal fix final --- gestionatr/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestionatr/cli.py b/gestionatr/cli.py index 7911075..5c6e2b6 100644 --- a/gestionatr/cli.py +++ b/gestionatr/cli.py @@ -126,7 +126,6 @@ def request_atr_29(url, user, password, xml_str=None, params=None): # Clean XML xml_str = xml_str.strip() - xml_str = xml_str.replace("'utf-8'", "'UTF-8'") xml_str = re.sub(r'<\?.*\?>', '', xml_str) xml_str = xml_str.replace("""""", "") xml_str = xml_str.replace("""""", "") @@ -161,6 +160,7 @@ def find_child(element, child_name): res = re.sub(r'\<[^: \n>/]+:', '<', res) res = re.sub(r'\/]+:', '', '', res) res = res.replace("", """""") res = res.replace("", """""", 1) aux = etree.fromstring(res)