fix reload import

This commit is contained in:
Luke Campagnola 2018-04-26 13:28:51 -07:00
parent 60a48ed2e4
commit 986ccb81f4

View File

@ -23,11 +23,11 @@ Does NOT:
from __future__ import print_function
import inspect, os, sys, gc, traceback, types
try:
from builtins import reload as orig_reload
except ImportError:
from importlib import reload as orig_reload
from .debug import printExc
try:
from importlib import reload as orig_reload
except ImportError:
orig_reload = reload
py3 = sys.version_info >= (3,)