[Bf-blender-cvs] [bc4fe45aef7] master: Cleanup: pep8, prefix unused arg

Campbell Barton noreply at git.blender.org
Wed Aug 14 15:33:59 CEST 2019


Commit: bc4fe45aef7e52f9e7a2bd5e370c6791c58af832
Author: Campbell Barton
Date:   Wed Aug 14 23:25:30 2019 +1000
Branches: master
https://developer.blender.org/rBbc4fe45aef7e52f9e7a2bd5e370c6791c58af832

Cleanup: pep8, prefix unused arg

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

M	release/scripts/startup/bl_operators/wm.py

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

diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index 3f25c35973d..d59ad0694db 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -1115,12 +1115,12 @@ class WM_OT_properties_edit(Operator):
     )
     subtype: EnumProperty(
         name="Subtype",
-        items=lambda self,ctx: WM_OT_properties_edit.subtype_items,
+        items=lambda self, _context: WM_OT_properties_edit.subtype_items,
     )
 
     subtype_items = rna_vector_subtype_items
 
-    def init_subtype(self, prop_type, is_array, subtype):
+    def _init_subtype(self, prop_type, is_array, subtype):
         subtype = subtype or 'NONE'
         subtype_items = rna_vector_subtype_items
 
@@ -1314,7 +1314,7 @@ class WM_OT_properties_edit(Operator):
         else:
             subtype = None
 
-        self.init_subtype(prop_type, is_array, subtype)
+        self._init_subtype(prop_type, is_array, subtype)
 
         # store for comparison
         self._cmp_props = self._cmp_props_get()



More information about the Bf-blender-cvs mailing list