summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavanum Srinivas <davanum@gmail.com>2015-03-12 07:02:46 -0400
committerDavanum Srinivas <davanum@gmail.com>2015-03-12 11:38:50 -0400
commit5de2c31e9d24f40fc7d33ddb1ce407ffdc6f366c (patch)
tree8830e04d0135642765087e9c469be9db00ac55dc
parent919669542bfbc410b645db2a54b761c4d5c1f8d6 (diff)
downloadoslo-vmware-5de2c31e9d24f40fc7d33ddb1ce407ffdc6f366c.tar.gz
Switch to non-namespaced module imports0.11.1
Looks like we missed a few Change-Id: I803c09170c9dbc9439d71259f6b632c4cbb6037f
-rw-r--r--oslo_vmware/_i18n.py4
-rw-r--r--oslo_vmware/api.py2
-rw-r--r--oslo_vmware/common/loopingcall.py2
-rw-r--r--oslo_vmware/rw_handles.py4
-rw-r--r--oslo_vmware/service.py2
-rw-r--r--oslo_vmware/tests/objects/test_datastore.py2
-rw-r--r--oslo_vmware/tests/test_service.py2
-rw-r--r--oslo_vmware/vim_util.py2
-rw-r--r--tests/objects/test_datastore.py2
-rw-r--r--tests/test_service.py2
10 files changed, 12 insertions, 12 deletions
diff --git a/oslo_vmware/_i18n.py b/oslo_vmware/_i18n.py
index 5ab76c8..21aa9f1 100644
--- a/oslo_vmware/_i18n.py
+++ b/oslo_vmware/_i18n.py
@@ -16,10 +16,10 @@ See http://docs.openstack.org/developer/oslo.i18n/usage.html
"""
-from oslo import i18n
+import oslo_i18n
-_translators = i18n.TranslatorFactory(domain='oslo.vmware')
+_translators = oslo_i18n.TranslatorFactory(domain='oslo.vmware')
# The primary translation function using the well-known name "_"
_ = _translators.primary
diff --git a/oslo_vmware/api.py b/oslo_vmware/api.py
index 8f393ab..df68bc9 100644
--- a/oslo_vmware/api.py
+++ b/oslo_vmware/api.py
@@ -24,9 +24,9 @@ in case of connection problems or server API call overload.
import logging
from oslo_concurrency import lockutils
+from oslo_utils import excutils
import six
-from oslo.utils import excutils
from oslo_vmware._i18n import _, _LE, _LI, _LW
from oslo_vmware.common import loopingcall
from oslo_vmware import exceptions
diff --git a/oslo_vmware/common/loopingcall.py b/oslo_vmware/common/loopingcall.py
index 815dbcb..1db1f21 100644
--- a/oslo_vmware/common/loopingcall.py
+++ b/oslo_vmware/common/loopingcall.py
@@ -20,8 +20,8 @@ import sys
from eventlet import event
from eventlet import greenthread
+from oslo_utils import timeutils
-from oslo.utils import timeutils
from oslo_vmware._i18n import _LE, _LW
LOG = logging.getLogger(__name__)
diff --git a/oslo_vmware/rw_handles.py b/oslo_vmware/rw_handles.py
index 478c3a5..e417e5f 100644
--- a/oslo_vmware/rw_handles.py
+++ b/oslo_vmware/rw_handles.py
@@ -24,13 +24,13 @@ glance server.
import logging
import ssl
+from oslo_utils import excutils
+from oslo_utils import netutils
import requests
import six
import six.moves.urllib.parse as urlparse
from urllib3 import connection as httplib
-from oslo.utils import excutils
-from oslo.utils import netutils
from oslo_vmware._i18n import _, _LE, _LW
from oslo_vmware import exceptions
from oslo_vmware import vim_util
diff --git a/oslo_vmware/service.py b/oslo_vmware/service.py
index e0cc414..2712907 100644
--- a/oslo_vmware/service.py
+++ b/oslo_vmware/service.py
@@ -21,6 +21,7 @@ import logging
import os
import netaddr
+from oslo_utils import timeutils
import requests
import six
import six.moves.http_client as httplib
@@ -30,7 +31,6 @@ from suds import client
from suds import plugin
from suds import transport
-from oslo.utils import timeutils
from oslo_vmware._i18n import _
from oslo_vmware import exceptions
from oslo_vmware import vim_util
diff --git a/oslo_vmware/tests/objects/test_datastore.py b/oslo_vmware/tests/objects/test_datastore.py
index 801f24b..d50389d 100644
--- a/oslo_vmware/tests/objects/test_datastore.py
+++ b/oslo_vmware/tests/objects/test_datastore.py
@@ -13,9 +13,9 @@
# under the License.
import mock
+from oslo_utils import units
import six.moves.urllib.parse as urlparse
-from oslo.utils import units
from oslo_vmware import constants
from oslo_vmware.objects import datastore
from oslo_vmware.tests import base
diff --git a/oslo_vmware/tests/test_service.py b/oslo_vmware/tests/test_service.py
index b2f78cf..8173128 100644
--- a/oslo_vmware/tests/test_service.py
+++ b/oslo_vmware/tests/test_service.py
@@ -392,7 +392,7 @@ class MemoryCacheTest(base.TestCase):
cache2 = service.Service().client.options.cache
self.assertIs(cache1, cache2)
- @mock.patch('oslo.utils.timeutils.utcnow_ts')
+ @mock.patch('oslo_utils.timeutils.utcnow_ts')
def test_cache_timeout(self, mock_utcnow_ts):
mock_utcnow_ts.side_effect = [100, 125, 150, 175, 195, 200, 225]
diff --git a/oslo_vmware/vim_util.py b/oslo_vmware/vim_util.py
index 4631d7e..8980a51 100644
--- a/oslo_vmware/vim_util.py
+++ b/oslo_vmware/vim_util.py
@@ -19,9 +19,9 @@ The VMware API utility module.
import logging
+from oslo_utils import timeutils
from suds import sudsobject
-from oslo.utils import timeutils
from oslo_vmware._i18n import _LW
diff --git a/tests/objects/test_datastore.py b/tests/objects/test_datastore.py
index 2d66ccf..157cd9a 100644
--- a/tests/objects/test_datastore.py
+++ b/tests/objects/test_datastore.py
@@ -13,9 +13,9 @@
# under the License.
import mock
+from oslo_utils import units
import six.moves.urllib.parse as urlparse
-from oslo.utils import units
from oslo.vmware import constants
from oslo.vmware.objects import datastore
from oslo.vmware import vim_util
diff --git a/tests/test_service.py b/tests/test_service.py
index c80ceab..43a5897 100644
--- a/tests/test_service.py
+++ b/tests/test_service.py
@@ -359,7 +359,7 @@ class MemoryCacheTest(base.TestCase):
cache2 = service.Service().client.options.cache
self.assertIs(cache1, cache2)
- @mock.patch('oslo.utils.timeutils.utcnow_ts')
+ @mock.patch('oslo_utils.timeutils.utcnow_ts')
def test_cache_timeout(self, mock_utcnow_ts):
mock_utcnow_ts.side_effect = [100, 125, 150, 175, 195, 200, 225]