switch from incubated gettextutils to oslo.i18n

Replace the incubated copy of gettextutils with oslo.i18n, following the
best-practices guidelines in the library documentation for handling
imports, module names, and exceptions to the hacking rules.

Change-Id: Ie366afd8bda2a72c964d9ddf7dd53718002fb4d0
Story: 2000776
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann
2016-11-07 08:47:47 -05:00
parent 83e9df0629
commit 79024e76b3
43 changed files with 86 additions and 513 deletions

View File

@@ -21,8 +21,8 @@ from six.moves.urllib.parse import urlencode
from six.moves.urllib.parse import urlparse
from six.moves.urllib.parse import urlunparse
from storyboard._i18n import _
from storyboard.common import exception as exc
from storyboard.openstack.common.gettextutils import _ # noqa
def db_exceptions(func):

View File

@@ -18,7 +18,7 @@ from six.moves import http_client
from six.moves.urllib.parse import urlparse
from wsme.exc import ClientSideError
from storyboard.openstack.common.gettextutils import _ # noqa
from storyboard._i18n import _
LOG = log.getLogger(__name__)