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:
@@ -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):
|
||||
|
||||
@@ -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__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user