diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-06-21 02:50:23 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-06-21 03:18:53 +0300 |
commit | 0c538fc923803c8611c3c7c7af9ca51fc5293b75 (patch) | |
tree | 4e2ab026d002301904259074b616560056a66dc5 /release/scripts/modules/addon_utils.py | |
parent | 1e050bd08e408a45435000a1057a3524a78e2ac4 (diff) |
Cleanup: spelling, grammar, and other corrections
D5084 by @nBurn with edits
Diffstat (limited to 'release/scripts/modules/addon_utils.py')
-rw-r--r-- | release/scripts/modules/addon_utils.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/release/scripts/modules/addon_utils.py b/release/scripts/modules/addon_utils.py index 3ff296d0be9..70768a102b3 100644 --- a/release/scripts/modules/addon_utils.py +++ b/release/scripts/modules/addon_utils.py @@ -342,8 +342,8 @@ def enable(module_name, *, default_set=False, persistent=False, handle_error=Non # Split registering up into 3 steps so we can undo # if it fails par way through. - # disable the context, using the context at all is - # really bad while loading an addon, don't do it! + # Disable the context: using the context at all + # while loading an addon is really bad, don't do it! with RestrictBlend(): # 1) try import @@ -362,16 +362,16 @@ def enable(module_name, *, default_set=False, persistent=False, handle_error=Non _addon_remove(module_name) return None - # 1.1) fail when add-on is too old + # 1.1) Fail when add-on is too old. # This is a temporary 2.8x migration check, so we can manage addons that are supported. if mod.bl_info.get("blender", (0, 0, 0)) < (2, 80, 0): if _bpy.app.debug: - print(f"Warning: Add-on '{module_name:s}' has not been upgraded to 2.8, ignoring") + print(f"Warning: Add-on '{module_name:s}' was not upgraded for 2.80, ignoring") return None - # 2) try register collected modules - # removed, addons need to handle own registration now. + # 2) Try register collected modules. + # Removed register_module, addons need to handle their own registration now. use_owner = mod.bl_info.get("use_owner", True) if use_owner: @@ -379,7 +379,7 @@ def enable(module_name, *, default_set=False, persistent=False, handle_error=Non owner_id_prev = _bl_owner_id_get() _bl_owner_id_set(module_name) - # 3) try run the modules register function + # 3) Try run the modules register function. try: mod.register() except Exception as ex: |