[Bf-blender-cvs] [3569ea0] master: Cleanup: Python imports

Campbell Barton noreply at git.blender.org
Tue Jun 28 04:14:00 CEST 2016


Commit: 3569ea03d8e6a5b8f9245e67064196e61c66d460
Author: Campbell Barton
Date:   Tue Jun 28 11:58:38 2016 +1000
Branches: master
https://developer.blender.org/rB3569ea03d8e6a5b8f9245e67064196e61c66d460

Cleanup: Python imports

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

M	release/scripts/modules/bpy/utils/__init__.py

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

diff --git a/release/scripts/modules/bpy/utils/__init__.py b/release/scripts/modules/bpy/utils/__init__.py
index 5e2769c..66974de 100644
--- a/release/scripts/modules/bpy/utils/__init__.py
+++ b/release/scripts/modules/bpy/utils/__init__.py
@@ -52,15 +52,15 @@ __all__ = (
     )
 
 from _bpy import (
+        _utils_units as units,
+        blend_paths,
         escape_identifier,
         register_class,
-        unregister_class,
-        blend_paths,
         resource_path,
+        script_paths as _bpy_script_paths,
+        unregister_class,
+        user_resource as _user_resource,
         )
-from _bpy import script_paths as _bpy_script_paths
-from _bpy import user_resource as _user_resource
-from _bpy import _utils_units as units
 
 import bpy as _bpy
 import os as _os
@@ -641,11 +641,10 @@ def unregister_module(module, verbose=False):
 
 # we start with the built-in default mapping
 def _blender_default_map():
-    import sys
     import rna_manual_reference as ref_mod
     ret = (ref_mod.url_manual_prefix, ref_mod.url_manual_mapping)
     # avoid storing in memory
-    del sys.modules["rna_manual_reference"]
+    del _sys.modules["rna_manual_reference"]
     return ret
 
 # hooks for doc lookups




More information about the Bf-blender-cvs mailing list