diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-05-11 02:40:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-05-14 17:36:49 +0300 |
commit | 265d97556aa0f0f2a0e4dd7584e3b8573bbddd54 (patch) | |
tree | 76ffd53c8853d68a5adb87bb8c0b4f80d0ee9a90 /release/scripts | |
parent | 65f955081370e77a61d822da1fa78960c8a0149e (diff) |
PyAPI: use iterators for ID property methods (keys, values & items)
- Matches changes in Python 3.x dictionary methods.
- Iterating now raises a run-time error if the property-group changes
size during iteration.
- IDPropertyGroup.iteritems() has been removed.
- IDPropertyGroup View & Iterator types have been added.
- Some set functionality from dict_keys/values/items aren't yet
supported (isdisjoint method and boolean set style operations).
Proposed as part of T85675.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/modules/rna_prop_ui.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/rna_prop_ui.py b/release/scripts/modules/rna_prop_ui.py index e3158118146..54cde1e1c04 100644 --- a/release/scripts/modules/rna_prop_ui.py +++ b/release/scripts/modules/rna_prop_ui.py @@ -235,7 +235,7 @@ def draw(layout, context, context_member, property_type, use_edit=True): assert(isinstance(rna_item, property_type)) - items = rna_item.items() + items = list(rna_item.items()) items.sort() # TODO: Allow/support adding new custom props to overrides. |