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 /rigify/utils.py
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 'rigify/utils.py')
-rw-r--r--rigify/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rigify/utils.py b/rigify/utils.py
index 15505d0d..a4e588c9 100644
--- a/rigify/utils.py
+++ b/rigify/utils.py
@@ -19,7 +19,7 @@
# <pep8 compliant>
import bpy
-import imp
+import importlib
import importlib
import math
import random
@@ -647,7 +647,7 @@ def get_rig_type(rig_type):
"""
name = ".%s.%s" % (RIG_DIR, rig_type)
submod = importlib.import_module(name, package=MODULE_NAME)
- imp.reload(submod)
+ importlib.reload(submod)
return submod
@@ -656,7 +656,7 @@ def get_metarig_module(metarig_name):
"""
name = ".%s.%s" % (METARIG_DIR, metarig_name)
submod = importlib.import_module(name, package=MODULE_NAME)
- imp.reload(submod)
+ importlib.reload(submod)
return submod