Merge "Only define CONTEXT_SEPARATOR once"

This commit is contained in:
Jenkins 2015-07-24 02:16:19 +00:00 committed by Gerrit Code Review
commit cefa61014a
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ __all__ = [
]
# magic gettext number to separate context from message
CONTEXT_SEPARATOR = "\x04"
CONTEXT_SEPARATOR = _message.CONTEXT_SEPARATOR
class TranslatorFactory(object):

View File

@ -23,7 +23,7 @@ from oslo_i18n import _lazy
from oslo_i18n import _message
# magic gettext number to separate context from message
CONTEXT_SEPARATOR = "\x04"
CONTEXT_SEPARATOR = _message.CONTEXT_SEPARATOR
class TranslatorFactoryTest(test_base.BaseTestCase):