[elbe-devel] [PATCH 3/7] elbepack: treeutils: avoid pointless encoding roundtrip
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Wed Jul 24 10:01:31 CEST 2024
tostring() can already provide str() objects, use that.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/treeutils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/elbepack/treeutils.py b/elbepack/treeutils.py
index ad39cb32c67f..966d450be1e3 100644
--- a/elbepack/treeutils.py
+++ b/elbepack/treeutils.py
@@ -100,7 +100,7 @@ class ebase:
self.et.append(copy.deepcopy(other.et))
def tostring(self):
- return tostring(self.et, encoding='utf-8').decode('utf-8')
+ return tostring(self.et, encoding=str)
class elem(ebase):
--
2.45.2
More information about the elbe-devel
mailing list