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:
Doug Hellmann 2015-07-02 20:43:02 +00:00
parent 9e3132bc2f
commit ecb91209d8
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):