Remove i18n.enable_lazy() translation

Refering [1], enable_lazy() should not
be used.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-November/136289.html

Change-Id: Ia0c5248ddaa871dae9f5fb296d85b89c709e73b1
This commit is contained in:
Vishakha Agarwal 2018-11-14 13:07:47 +05:30 committed by Colleen Murphy
parent 652a8b39a8
commit 20f11eb88a
2 changed files with 0 additions and 17 deletions

View File

@ -13,18 +13,10 @@
import collections
import os
import oslo_i18n
from oslo_log import log
import stevedore
from werkzeug.contrib import fixers
# NOTE(dstanek): i18n.enable_lazy() must be called before
# keystone.i18n._() is called to ensure it has the desired lazy lookup
# behavior. This includes cases, like keystone.exceptions, where
# keystone.i18n._() is called at import time.
oslo_i18n.enable_lazy()
from keystone.common import profiler
import keystone.conf
import keystone.server

View File

@ -12,13 +12,4 @@
# License for the specific language governing permissions and limitations
# under the License.
import oslo_i18n
# NOTE(dstanek): oslo_i18n.enable_lazy() must be called before
# keystone.i18n._() is called to ensure it has the desired lazy lookup
# behavior. This includes cases, like keystone.exceptions, where
# keystone.i18n._() is called at import time.
oslo_i18n.enable_lazy()
from keystone.tests.unit.core import * # noqa