[elbe-devel] [PATCH 4/5] elbepack: elbexml: don't call object.__getstate__()

Thomas Weißschuh thomas.weissschuh at linutronix.de
Wed Oct 2 12:09:47 CEST 2024


object.__getstate__() is only present since Python 3.11.
Avoid using it for Debian bullseye compatibility.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/elbexml.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/elbexml.py b/elbepack/elbexml.py
index 2dd7b2f222ab8f0745ccd02523150f3e179f6689..75e96b43bb16dbe826203c0e7a2e07ef37b2d3fa 100644
--- a/elbepack/elbexml.py
+++ b/elbepack/elbexml.py
@@ -86,7 +86,7 @@ class ElbeXML:
             self.validate_apt_sources(url_validation, self.defs['arch'])
 
     def __getstate__(self):
-        state = super().__getstate__().copy()
+        state = self.__dict__.copy()
         state['xml'] = state['xml'].tostring()
         state.pop('prj', None)
         state.pop('tgt', None)

-- 
2.46.2



More information about the elbe-devel mailing list