Cleanup: pep8

This commit is contained in:
2015-09-01 03:51:50 +10:00
parent b3f4bf87b4
commit 922d72355d
11 changed files with 13 additions and 12 deletions

View File

@@ -85,6 +85,7 @@ class NodeItemCustom:
_node_categories = {}
def register_node_categories(identifier, cat_list):
if identifier in _node_categories:
raise KeyError("Node categories list '%s' already registered" % identifier)
@@ -167,6 +168,7 @@ def unregister_node_categories(identifier=None):
unregister_node_cat_types(cat_types)
_node_categories.clear()
def draw_node_categories_menu(self, context):
for cats in _node_categories.values():
cats[1](self, context)