From 318851e12849f880e486fdecb8c96956305fbcc0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 3 Oct 2018 09:18:14 +1000 Subject: Cleanup: use tuples for storing classes --- development_icon_get.py | 4 ++-- io_anim_bvh/__init__.py | 4 ++-- io_mesh_stl/__init__.py | 4 ++-- io_shape_mdd/__init__.py | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) 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: -- cgit v1.2.3