Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-05-09 06:11:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-09 06:11:36 +0300
commit7465a5db3b9e8ad64e482f94901f597ba4549367 (patch)
tree9d2adfc77d3925c4bb5ffe9a449d5f1c1a42a3c1 /release/scripts/modules/nodeitems_utils.py
parentfc37238b17ed1a8c80bf5eaf849ab3fc4af59069 (diff)
Cleanup: unused args/vars/imports in modules
Diffstat (limited to 'release/scripts/modules/nodeitems_utils.py')
-rw-r--r--release/scripts/modules/nodeitems_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/modules/nodeitems_utils.py b/release/scripts/modules/nodeitems_utils.py
index 76342b9e645..595b6c8ee5f 100644
--- a/release/scripts/modules/nodeitems_utils.py
+++ b/release/scripts/modules/nodeitems_utils.py
@@ -22,7 +22,7 @@ import bpy
class NodeCategory:
@classmethod
- def poll(cls, context):
+ def poll(cls, _context):
return True
def __init__(self, identifier, name, description="", items=None):
@@ -80,7 +80,7 @@ class NodeItem:
# NB: is a staticmethod because called with an explicit self argument
# NodeItemCustom sets this as a variable attribute in __init__
@staticmethod
- def draw(self, layout, context):
+ def draw(self, layout, _context):
props = layout.operator("node.add_node", text=self.label, text_ctxt=self.translation_context)
props.type = self.nodetype
props.use_transform = True