Remove graduated gettextutils from openstack/common

Use oslo.i18n package and handle different versions properly in
glanceclient._i18n. The oslo namespace is being deprecated so imports
will be oslo_i18n going forward. For older versions of oslo.i18n though,
we will still be able to import i18n from oslo.

Change-Id: Id56d34ccf447dc6f7becafb74d6a30e8a1642030
This commit is contained in:
Ian Cordasco
2015-01-06 11:26:28 -06:00
parent 5ec4a24b89
commit 1d823962e1
4 changed files with 37 additions and 449 deletions
+2 -1
View File
@@ -34,9 +34,9 @@ from oslo.utils import importutils
import six.moves.urllib.parse as urlparse
import glanceclient
from glanceclient import _i18n
from glanceclient.common import utils
from glanceclient import exc
from glanceclient.openstack.common.gettextutils import _
from keystoneclient.auth.identity import v2 as v2_auth
from keystoneclient.auth.identity import v3 as v3_auth
@@ -45,6 +45,7 @@ from keystoneclient.openstack.common.apiclient import exceptions as ks_exc
from keystoneclient import session
osprofiler_profiler = importutils.try_import("osprofiler.profiler")
_ = _i18n._
class OpenStackImagesShell(object):