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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stvel <sybren@stuvel.eu>2015-01-22 09:05:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-01-22 09:05:39 +0300
commitd47e9be4fb204988ec659fc59882b2f5964afa3f (patch)
tree65bcb61c102f345e318704fdb57330c1584b5837 /add_mesh_extra_objects
parent4741a42e5d04c220ff782989a2ad87f1f1bffd65 (diff)
Fix: replaced Python module "imp" with "implib"
Python 3.4.0 deprecated the "imp" module, and replaced it with "importlib". This changes imp.reload() into implib.reload(). Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D1016
Diffstat (limited to 'add_mesh_extra_objects')
-rw-r--r--add_mesh_extra_objects/__init__.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/add_mesh_extra_objects/__init__.py b/add_mesh_extra_objects/__init__.py
index be086042..41bebc7f 100644
--- a/add_mesh_extra_objects/__init__.py
+++ b/add_mesh_extra_objects/__init__.py
@@ -32,20 +32,20 @@ bl_info = {
}
if "bpy" in locals():
- import imp
- imp.reload(add_mesh_extra_objects)
- imp.reload(add_mesh_twisted_torus)
- imp.reload(add_mesh_gemstones)
- imp.reload(add_mesh_gears)
- imp.reload(add_mesh_3d_function_surface)
- imp.reload(add_mesh_polysphere)
- imp.reload(add_mesh_supertoroid)
- imp.reload(add_mesh_pyramid)
- imp.reload(add_mesh_torusknot)
- imp.reload(add_mesh_honeycomb)
- imp.reload(add_mesh_teapot)
- imp.reload(add_mesh_pipe_joint)
- imp.reload(add_mesh_solid)
+ import importlib
+ importlib.reload(add_mesh_extra_objects)
+ importlib.reload(add_mesh_twisted_torus)
+ importlib.reload(add_mesh_gemstones)
+ importlib.reload(add_mesh_gears)
+ importlib.reload(add_mesh_3d_function_surface)
+ importlib.reload(add_mesh_polysphere)
+ importlib.reload(add_mesh_supertoroid)
+ importlib.reload(add_mesh_pyramid)
+ importlib.reload(add_mesh_torusknot)
+ importlib.reload(add_mesh_honeycomb)
+ importlib.reload(add_mesh_teapot)
+ importlib.reload(add_mesh_pipe_joint)
+ importlib.reload(add_mesh_solid)
else:
from . import add_mesh_extra_objects