From 3281e8f274e74bfb4a259f681f79e46d8a638232 Mon Sep 17 00:00:00 2001 From: Nam Nguyen Hoai Date: Fri, 26 Aug 2016 11:56:22 +0700 Subject: [PATCH] Cleaning imports in code This patch merges all lines importing i18n into 1 line. This will become more beautiful. Change-Id: I99b6044b4f5c931c8e85690eb853ff0c68e2ad7c --- keystone/common/kvs/core.py | 5 +---- keystone/common/wsgi.py | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/keystone/common/kvs/core.py b/keystone/common/kvs/core.py index ea923e73fe..3ef0f7d5e1 100644 --- a/keystone/common/kvs/core.py +++ b/keystone/common/kvs/core.py @@ -29,10 +29,7 @@ from oslo_utils import reflection import keystone.conf from keystone import exception -from keystone.i18n import _ -from keystone.i18n import _LI -from keystone.i18n import _LW - +from keystone.i18n import _, _LI, _LW __all__ = ('KeyValueStore', 'KeyValueStoreLock', 'LockTimeout', 'get_key_value_store') diff --git a/keystone/common/wsgi.py b/keystone/common/wsgi.py index 4d245aab88..be9c30facd 100644 --- a/keystone/common/wsgi.py +++ b/keystone/common/wsgi.py @@ -41,9 +41,7 @@ from keystone.common import request as request_mod from keystone.common import utils import keystone.conf from keystone import exception -from keystone.i18n import _ -from keystone.i18n import _LI -from keystone.i18n import _LW +from keystone.i18n import _, _LI, _LW from keystone.models import token_model