From 80cead48bcb3fef19c021e91746e747d162ca626 Mon Sep 17 00:00:00 2001 From: kong wei Date: Sat, 4 Mar 2017 16:21:26 +0000 Subject: cmd can call oslo_i18n.enable_lazy directly. Change-Id: I09949cd6a35fca1fff9568bf6608b29bb59ddb3d Signed-off-by: Kong Wei --- api/escalator/cmd/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/escalator/cmd/__init__.py b/api/escalator/cmd/__init__.py index 871224d..2e1b10b 100644 --- a/api/escalator/cmd/__init__.py +++ b/api/escalator/cmd/__init__.py @@ -12,5 +12,6 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. -from escalator import i18n -i18n.enable_lazy() +import oslo_i18n + +oslo_i18n.enable_lazy() -- cgit 1.2.3-korg