diff options
author | Aaron Rosen <aaronorosen@gmail.com> | 2014-09-03 22:16:48 -0700 |
---|---|---|
committer | Aaron Rosen <aaronorosen@gmail.com> | 2015-01-12 22:58:00 +0000 |
commit | 0b38d75a44f409a9fa6719f2b6c402345d8de66d (patch) | |
tree | e664626e9973a49640143e50efeb44dded8ce1d8 /cinderclient/utils.py | |
parent | 0d93c3b76dc3aa6f3cca5d2e6169e0ea8f85121f (diff) | |
download | python-cinderclient-0b38d75a44f409a9fa6719f2b6c402345d8de66d.tar.gz |
Leverage openstack.common.importutils import_class
This patch drops the import_class method from utils and instead
leverages the one in openstack.common.importutils.
Change-Id: I9f740b9941d477776597c4c4ab88a65a39fb4fb8
Closes-bug: 1365273
Diffstat (limited to 'cinderclient/utils.py')
-rw-r--r-- | cinderclient/utils.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/cinderclient/utils.py b/cinderclient/utils.py index 876ed77..fcf9f68 100644 --- a/cinderclient/utils.py +++ b/cinderclient/utils.py @@ -249,13 +249,6 @@ def safe_issubclass(*args): return False -def import_class(import_str): - """Returns a class from a string including module and class.""" - mod_str, _sep, class_str = import_str.rpartition('.') - __import__(mod_str) - return getattr(sys.modules[mod_str], class_str) - - def _load_entry_point(ep_name, name=None): """Try to load the entry point ep_name that matches name.""" for ep in pkg_resources.iter_entry_points(ep_name, name=name): |