Cleanup: line length, assignment

This commit is contained in:
Campbell Barton
2017-03-26 21:51:12 +11:00
parent 4bdb2d4885
commit 2830f687aa

View File

@@ -143,8 +143,7 @@ def load_scripts(reload_scripts=False, refresh_scripts=False):
as modules.
:type refresh_scripts: bool
"""
use_time = _bpy.app.debug_python
use_class_register_check = use_time
use_time = use_class_register_check = _bpy.app.debug_python
if use_time:
import time
@@ -163,7 +162,8 @@ def load_scripts(reload_scripts=False, refresh_scripts=False):
for module_name in [ext.module for ext in _user_preferences.addons]:
_addon_utils.disable(module_name)
# *AFTER* unregistering all add-ons, otherwise all calls to unregister_module() will silently fail (do nothing).
# *AFTER* unregistering all add-ons, otherwise all calls to
# unregister_module() will silently fail (do nothing).
_bpy_types.TypeMap.clear()
def register_module_call(mod):