Use __import__ for pylinting

parent 5f40bb72
...@@ -254,7 +254,7 @@ def bootstrapBuildout(path, buildout=None, ...@@ -254,7 +254,7 @@ def bootstrapBuildout(path, buildout=None,
invocation_list.extend(additional_buildout_parametr_list) invocation_list.extend(additional_buildout_parametr_list)
else: else:
try: try:
import zc.buildout __import__('zc.buildout')
except ImportError: except ImportError:
logger.warning('Using old style bootstrap of included bootstrap file. ' logger.warning('Using old style bootstrap of included bootstrap file. '
'Consider having zc.buildout available in search path.') 'Consider having zc.buildout available in search path.')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment