diff options
author | Julia Varlamova <jvarlamova@mirantis.com> | 2015-09-23 04:27:11 -0400 |
---|---|---|
committer | Julia Varlamova <jvarlamova@mirantis.com> | 2015-09-23 06:04:10 -0400 |
commit | e9c0f09a13beb7e25686e5aa576e400d0c29aa9b (patch) | |
tree | c414de14ee44a41fb380257cf9ba076b0111bd5e | |
parent | 8d66e529cfab926c98d569ee83e5aeef76f05776 (diff) | |
download | python-keystoneclient-e9c0f09a13beb7e25686e5aa576e400d0c29aa9b.tar.gz |
Sync oslo-incubator common code
Sync common code to address changes made in dependencies and make branch
"stable/kilo" workable.
Cherry-pick commits 0cc741a, 2aacb111, ac17de97 from oslo-incubator
Change-Id: If746912c99a83806137ca96e0863c4ff2ea8d96c
Closes-Bug: #1480314
-rw-r--r-- | keystoneclient/openstack/common/_i18n.py | 4 | ||||
-rw-r--r-- | keystoneclient/openstack/common/apiclient/base.py | 2 | ||||
-rw-r--r-- | keystoneclient/openstack/common/apiclient/client.py | 4 | ||||
-rw-r--r-- | keystoneclient/openstack/common/apiclient/utils.py | 2 | ||||
-rw-r--r-- | keystoneclient/openstack/common/memorycache.py | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/keystoneclient/openstack/common/_i18n.py b/keystoneclient/openstack/common/_i18n.py index 52a5e84..8ec3773 100644 --- a/keystoneclient/openstack/common/_i18n.py +++ b/keystoneclient/openstack/common/_i18n.py @@ -16,7 +16,7 @@ See http://docs.openstack.org/developer/oslo.i18n/usage.html """ -import oslo.i18n +import oslo_i18n # NOTE(dhellmann): This reference to o-s-l-o will be replaced by the @@ -24,7 +24,7 @@ import oslo.i18n # repository. It is OK to have more than one translation function # using the same domain, since there will still only be one message # catalog. -_translators = oslo.i18n.TranslatorFactory(domain='keystoneclient') +_translators = oslo_i18n.TranslatorFactory(domain='keystoneclient') # The primary translation function using the well-known name "_" _ = _translators.primary diff --git a/keystoneclient/openstack/common/apiclient/base.py b/keystoneclient/openstack/common/apiclient/base.py index 72d7999..fdfca59 100644 --- a/keystoneclient/openstack/common/apiclient/base.py +++ b/keystoneclient/openstack/common/apiclient/base.py @@ -26,7 +26,7 @@ Base utilities to build API operation managers and objects on top of. import abc import copy -from oslo.utils import strutils +from oslo_utils import strutils import six from six.moves.urllib import parse diff --git a/keystoneclient/openstack/common/apiclient/client.py b/keystoneclient/openstack/common/apiclient/client.py index dd560ab..1b4e14a 100644 --- a/keystoneclient/openstack/common/apiclient/client.py +++ b/keystoneclient/openstack/common/apiclient/client.py @@ -34,8 +34,8 @@ try: except ImportError: import json -from oslo.utils import encodeutils -from oslo.utils import importutils +from oslo_utils import encodeutils +from oslo_utils import importutils import requests from keystoneclient.openstack.common._i18n import _ diff --git a/keystoneclient/openstack/common/apiclient/utils.py b/keystoneclient/openstack/common/apiclient/utils.py index 6aa2975..a454621 100644 --- a/keystoneclient/openstack/common/apiclient/utils.py +++ b/keystoneclient/openstack/common/apiclient/utils.py @@ -11,7 +11,7 @@ # License for the specific language governing permissions and limitations # under the License. -from oslo.utils import encodeutils +from oslo_utils import encodeutils import six from keystoneclient.openstack.common._i18n import _ diff --git a/keystoneclient/openstack/common/memorycache.py b/keystoneclient/openstack/common/memorycache.py index 4826865..e7e105c 100644 --- a/keystoneclient/openstack/common/memorycache.py +++ b/keystoneclient/openstack/common/memorycache.py @@ -16,8 +16,8 @@ """Super simple fake memcache client.""" -from oslo.config import cfg -from oslo.utils import timeutils +from oslo_config import cfg +from oslo_utils import timeutils memcache_opts = [ cfg.ListOpt('memcached_servers', |