Cleanup i18n marker functions to match Oslo usage

Define marker functions as per usage in documentation.
http://docs.openstack.org/developer/oslo.i18n/usage.html

Change-Id: I564f5d1f31314be5c18420b6bc3d694a561d78f2
This commit is contained in:
Ronald Bradford 2016-07-20 15:33:55 -04:00
parent f9ad29d968
commit 43765a0f21
3 changed files with 3 additions and 8 deletions

View File

@ -79,7 +79,7 @@ exclude = .venv*,.git,.tox,dist,doc,*lib/python*,*.egg,.update-venv
max-complexity = 16 max-complexity = 16
[hacking] [hacking]
import_exceptions = zaqar.i18n._ import_exceptions = zaqar.i18n
[testenv:install-guide] [testenv:install-guide]
# NOTE(jaegerandi): this target does not use constraints because # NOTE(jaegerandi): this target does not use constraints because

View File

@ -20,10 +20,7 @@ import hmac
from oslo_utils import timeutils from oslo_utils import timeutils
import six import six
from zaqar import i18n from zaqar.i18n import _LE
_LE = i18n._LE
_DATE_FORMAT = '%Y-%m-%dT%H:%M:%S' _DATE_FORMAT = '%Y-%m-%dT%H:%M:%S'

View File

@ -18,13 +18,11 @@ from oslo_log import log as logging
import six import six
from zaqar.common import urls from zaqar.common import urls
from zaqar import i18n from zaqar.i18n import _LE
from zaqar.transport import utils from zaqar.transport import utils
from zaqar.transport.wsgi import errors as wsgi_errors from zaqar.transport.wsgi import errors as wsgi_errors
from zaqar.transport.wsgi import utils as wsgi_utils from zaqar.transport.wsgi import utils as wsgi_utils
_ = i18n._
_LE = i18n._LE
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)
_KNOWN_KEYS = {'methods', 'expires', 'paths'} _KNOWN_KEYS = {'methods', 'expires', 'paths'}