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 --- netrender/__init__.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'netrender') diff --git a/netrender/__init__.py b/netrender/__init__.py index 32abe9f8..4186f8b9 100644 --- a/netrender/__init__.py +++ b/netrender/__init__.py @@ -34,19 +34,19 @@ bl_info = { # To support reload properly, try to access a package var, if it's there, reload everything if "init_data" in locals(): - import imp - imp.reload(model) - imp.reload(operators) - imp.reload(client) - imp.reload(slave) - imp.reload(master) - imp.reload(master_html) - imp.reload(utils) - imp.reload(balancing) - imp.reload(ui) - imp.reload(repath) - imp.reload(versioning) - imp.reload(baking) + import importlib + importlib.reload(model) + importlib.reload(operators) + importlib.reload(client) + importlib.reload(slave) + importlib.reload(master) + importlib.reload(master_html) + importlib.reload(utils) + importlib.reload(balancing) + importlib.reload(ui) + importlib.reload(repath) + importlib.reload(versioning) + importlib.reload(baking) else: from netrender import model from netrender import operators -- cgit v1.2.3