mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Fix lint errors
This commit is contained in:
parent
8c256c94f4
commit
5353518623
@ -62,6 +62,9 @@ LIBCLOUD_FUNCS_NOT_SUPPORTED = (
|
||||
'rackspace.list_locations'
|
||||
)
|
||||
|
||||
# Will be set to pyximport module at runtime if cython is enabled in config.
|
||||
pyximport = None
|
||||
|
||||
|
||||
def static_loader(
|
||||
opts,
|
||||
@ -1094,7 +1097,6 @@ class LazyLoader(salt.utils.lazy.LazyDict):
|
||||
try:
|
||||
sys.path.append(os.path.dirname(fpath))
|
||||
if suffix == '.pyx':
|
||||
global pyximport
|
||||
mod = pyximport.load_module(name, fpath, tempfile.gettempdir())
|
||||
elif suffix == '.o':
|
||||
top_mod = __import__(fpath, globals(), locals(), [])
|
||||
|
Loading…
Reference in New Issue
Block a user