From d47e9be4fb204988ec659fc59882b2f5964afa3f Mon Sep 17 00:00:00 2001 From: "Sybren A. Stvel" Date: Thu, 22 Jan 2015 17:05:39 +1100 Subject: 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 --- io_scene_ms3d/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'io_scene_ms3d/__init__.py') diff --git a/io_scene_ms3d/__init__.py b/io_scene_ms3d/__init__.py index a4d04db9..794aae6b 100644 --- a/io_scene_ms3d/__init__.py +++ b/io_scene_ms3d/__init__.py @@ -48,9 +48,9 @@ bl_info = { # To support reload properly, try to access a package var, # if it's there, reload everything if 'bpy' in locals(): - import imp + import importlib if 'io_scene_ms3d.ms3d_ui' in locals(): - imp.reload(io_scene_ms3d.ms3d_ui) + importlib.reload(io_scene_ms3d.ms3d_ui) else: from io_scene_ms3d.ms3d_ui import ( Ms3dImportOperator, @@ -74,8 +74,8 @@ from bpy.types import ( def register(): #################### # F8 - key - import imp - imp.reload(ms3d_ui) + import importlib + importlib.reload(ms3d_ui) # F8 - key #################### -- cgit v1.2.3