summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorkong wei <kong.wei2@zte.com.cn>2017-03-06 01:27:33 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-06 01:27:33 +0000
commit0f77b8c0e134bd131dc7077b542f3f1bf3395fbb (patch)
tree3e010ff3310cb13a40fb16829b7b2d0b12291b50 /api
parente5a5e337b8e0b03d69f7da4cf9299b4814e1c7ad (diff)
parent80cead48bcb3fef19c021e91746e747d162ca626 (diff)
Merge "cmd can call oslo_i18n.enable_lazy directly."
Diffstat (limited to 'api')
-rw-r--r--api/escalator/cmd/__init__.py5
1 files 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()