[Bf-extensions-cvs] [318851e1] blender2.8: Cleanup: use tuples for storing classes

Campbell Barton noreply at git.blender.org
Wed Oct 3 01:18:35 CEST 2018


Commit: 318851e12849f880e486fdecb8c96956305fbcc0
Author: Campbell Barton
Date:   Wed Oct 3 09:18:14 2018 +1000
Branches: blender2.8
https://developer.blender.org/rBA318851e12849f880e486fdecb8c96956305fbcc0

Cleanup: use tuples for storing classes

===================================================================

M	development_icon_get.py
M	io_anim_bvh/__init__.py
M	io_mesh_stl/__init__.py
M	io_shape_mdd/__init__.py

===================================================================

diff --git a/development_icon_get.py b/development_icon_get.py
index cbeeea9a..ea175539 100644
--- a/development_icon_get.py
+++ b/development_icon_get.py
@@ -487,14 +487,14 @@ class IV_OT_icons_show(bpy.types.Operator):
             self, width=self.width)
 
 
-classes = [
+classes = (
     IV_PT_icons,
     IV_HT_icons,
     IV_OT_panel_menu_call,
     IV_OT_icon_select,
     IV_OT_icons_show,
     IV_Preferences,
-]
+)
 
 
 def register():
diff --git a/io_anim_bvh/__init__.py b/io_anim_bvh/__init__.py
index 01484af9..68d08c15 100644
--- a/io_anim_bvh/__init__.py
+++ b/io_anim_bvh/__init__.py
@@ -217,10 +217,10 @@ def menu_func_export(self, context):
     self.layout.operator(ExportBVH.bl_idname, text="Motion Capture (.bvh)")
 
 
-classes = [
+classes = (
     ImportBVH,
     ExportBVH
-]
+)
 
 def register():
     for cls in classes:
diff --git a/io_mesh_stl/__init__.py b/io_mesh_stl/__init__.py
index 934cdbb4..6859627c 100644
--- a/io_mesh_stl/__init__.py
+++ b/io_mesh_stl/__init__.py
@@ -254,10 +254,10 @@ def menu_export(self, context):
     self.layout.operator(ExportSTL.bl_idname, text="Stl (.stl)")
 
 
-classes = [
+classes = (
     ImportSTL,
     ExportSTL
-]
+)
 
 def register():
     for cls in classes:
diff --git a/io_shape_mdd/__init__.py b/io_shape_mdd/__init__.py
index 169e0c17..b6f0e734 100644
--- a/io_shape_mdd/__init__.py
+++ b/io_shape_mdd/__init__.py
@@ -164,10 +164,10 @@ def menu_func_export(self, context):
                          )
 
 
-classes = [
+classes = (
     ImportMDD,
     ExportMDD
-]
+)
 
 def register():
     for cls in classes:



More information about the Bf-extensions-cvs mailing list