Debian Codegraph @

debian/patches/0004-Fix-properties-introspection.patch

raw
1 From: Stuart Prescott <[email protected]>
2 Date: Mon, 7 Nov 2022 00:15:01 +0000
3 Subject: Fix properties introspection
4
5 Fix a backtrace from modifying a dictionary while iterating its keys.
6 Thanks to Olivier <[email protected]> for the patch.
7
8 Closes: #1015822
9 ---
10 bkchem/Pmw.py | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13 diff --git a/bkchem/Pmw.py b/bkchem/Pmw.py
14 index e19c53b..3d32f2f 100644
15 --- a/bkchem/Pmw.py
16 +++ b/bkchem/Pmw.py
17 @@ -549,7 +549,7 @@ class MegaArchetype(object):
18
19 alias = alias + '_'
20 aliasLen = len(alias)
21 - for option in keywords.keys():
22 + for option in list(keywords.keys()):
23 if len(option) > aliasLen and option[:aliasLen] == alias:
24 newkey = component + '_' + option[aliasLen:]
25 keywords[newkey] = keywords[option]