Commit: 60917c35e7baab550f30bf17f3a9bcb9961911c2
Author: Campbell Barton
Date: Fri Dec 18 22:27:03 2015 +1100
Branches: master
https://developer.blender.org/rB60917c35e7baab550f30bf17f3a9bcb9961911c2
Cleanup: use unpacking generalization
===================================================================
M release/scripts/modules/bpy_types.py
===================================================================
diff --git a/release/scripts/modules/bpy_types.py
b/release/scripts/modules/bpy_types.py
index 4f71cdf..1c08fc5 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)
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs