Only define CONTEXT_SEPARATOR once
Replace 2 of 3 definitions of CONTEXT_SEPARATOR with a reference to the variable in _message.py. Change-Id: I37020ca7cf26b523d3739b5613ea5d9be9051e0a
This commit is contained in:
parent
9e3132bc2f
commit
ecb91209d8
|
@ -31,7 +31,7 @@ __all__ = [
|
|||
]
|
||||
|
||||
# magic gettext number to separate context from message
|
||||
CONTEXT_SEPARATOR = "\x04"
|
||||
CONTEXT_SEPARATOR = _message.CONTEXT_SEPARATOR
|
||||
|
||||
|
||||
class TranslatorFactory(object):
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue