diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-02-12 07:26:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-02-12 08:35:16 +0300 |
commit | 5a1503953096927860b68f6315e354d2e39fb8bc (patch) | |
tree | b056566eb2c294b5a368b6af766d1d6c9d1075e5 /release/scripts/startup/bl_operators/wm.py | |
parent | 9d3d2fa03152cddf49864e4b96f0f77dd98b4507 (diff) |
Cleanup: use the assignment operator with list-comprehension
Diffstat (limited to 'release/scripts/startup/bl_operators/wm.py')
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index 2ee20e08589..c5457713d36 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -2191,8 +2191,7 @@ class WM_OT_batch_rename(Operator): id for ob in context.selected_objects if ob.type == data_type - for id in (ob.data,) - if id is not None and id.library is None + if (id := ob.data) is not None and id.library is None )) if only_selected else [id for id in getattr(bpy.data, attr) if id.library is None], |