Add python 2.7 comment
Change-Id: Ie4183da314bd7ca0719f45f0d9b3c26f8707e266
This commit is contained in:
parent
48c9a91de6
commit
f9f9a4654c
@ -741,6 +741,7 @@ def discover_extensions(version):
|
||||
def _discover_via_python_path():
|
||||
for (module_loader, name, _ispkg) in pkgutil.iter_modules():
|
||||
if name.endswith('_python_novaclient_ext'):
|
||||
# NOTE(sdague): needed for python 2.x compatibility.
|
||||
if not hasattr(module_loader, 'load_module'):
|
||||
module_loader = module_loader.find_module(name)
|
||||
module = module_loader.load_module(name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user