diff options
Diffstat (limited to 'openstack/common/importutils.py')
-rw-r--r-- | openstack/common/importutils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openstack/common/importutils.py b/openstack/common/importutils.py index dbee325..7a303f9 100644 --- a/openstack/common/importutils.py +++ b/openstack/common/importutils.py @@ -41,8 +41,9 @@ def import_object(import_str, *args, **kwargs): def import_object_ns(name_space, import_str, *args, **kwargs): - """ - Import a class and return an instance of it, first by trying + """Tries to import object from default namespace. + + Imports a class and return an instance of it, first by trying to find the class in a default namespace, then failing back to a full path if not found in the default namespace. """ |