summaryrefslogtreecommitdiff
path: root/glanceclient/common
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-12-16 12:30:19 +0000
committerGerrit Code Review <review@openstack.org>2016-12-16 12:30:19 +0000
commitfa11427af53595532124c74991ddcee6a89624ff (patch)
treea72c9f1cbb550dd8210eaaae486da3097618ab7c /glanceclient/common
parent07e0cb9e2b0cc7c795c1a7d9120b19c09cb218f4 (diff)
parent4773c9667251043333d9c3e0c56e9d262186380d (diff)
downloadpython-glanceclient-fa11427af53595532124c74991ddcee6a89624ff.tar.gz
Merge "Use import_versioned_module from oslo.utils"
Diffstat (limited to 'glanceclient/common')
-rw-r--r--glanceclient/common/utils.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/glanceclient/common/utils.py b/glanceclient/common/utils.py
index 9f3a1fe..93229e6 100644
--- a/glanceclient/common/utils.py
+++ b/glanceclient/common/utils.py
@@ -26,7 +26,6 @@ import sys
import threading
import uuid
-from oslo_utils import importutils
import six
if os.name == 'nt':
@@ -259,13 +258,6 @@ def env(*vars, **kwargs):
return kwargs.get('default', '')
-def import_versioned_module(version, submodule=None):
- module = 'glanceclient.v%s' % version
- if submodule:
- module = '.'.join((module, submodule))
- return importutils.import_module(module)
-
-
def exit(msg='', exit_code=1):
if msg:
print_err(msg)