File: python3.11.patch

package info (click to toggle)
python-apptools 5.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,552 kB
  • sloc: python: 9,868; makefile: 80
file content (18 lines) | stat: -rw-r--r-- 630 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: fix/workaround state_pickler bug with python3.11
Author: Étienne Mollier <emollier@debian.org>
Bug: https://github.com/enthought/apptools/issues/325
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1027503
Last-Update: 2023-01-21
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/apptools/persistence/state_pickler.py
+++ b/apptools/persistence/state_pickler.py
@@ -402,6 +402,8 @@ class StatePickler:
 
         if state is None:
             state = value.__dict__
+        if not state:
+            state = value.__dict__
 
         state.pop("__traits_version__", None)