Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-12-18 14:27:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-12-18 14:27:03 +0300
commit60917c35e7baab550f30bf17f3a9bcb9961911c2 (patch)
tree236fd020010d96038d11c3cc968691dc44f8e456 /release
parent73a5e4afa945982d85a1836164c823a8213fade1 (diff)
Cleanup: use unpacking generalization
Diffstat (limited to 'release')
-rw-r--r--release/scripts/modules/bpy_types.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py
index 4f71cdf7588..1c08fc5e51f 100644
--- a/release/scripts/modules/bpy_types.py
+++ b/release/scripts/modules/bpy_types.py
@@ -34,8 +34,10 @@ class Context(StructRNA):
def copy(self):
from types import BuiltinMethodType
new_context = {}
- generic_attrs = (list(StructRNA.__dict__.keys()) +
- ["bl_rna", "rna_type", "copy"])
+ generic_attrs = (
+ *StructRNA.__dict__.keys(),
+ "bl_rna", "rna_type", "copy",
+ )
for attr in dir(self):
if not (attr.startswith("_") or attr in generic_attrs):
value = getattr(self, attr)