Cleanup: use unpacking generalization
authorCampbell Barton <ideasman42@gmail.com>
Fri, 18 Dec 2015 11:27:03 +0000 (22:27 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 18 Dec 2015 11:27:03 +0000 (22:27 +1100)
release/scripts/modules/bpy_types.py

index 4f71cdf7588ac2d67446586f27b72bda65bad8a1..1c08fc5e51ff22774cf4cebbcab74fccc49ebe20 100644 (file)
@@ -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)