Revert "Add missing _ imports to allow doc generation"
This change reverts commit 0453785f3f
and
fixes a bug where the _() was not being recognized when building the
documentation while preserving the delayed translation of error
messages.
Closes-Bug: #1211507
Related-Bug: #1209413
Change-Id: I5d52941e1f08ec656f7279efb6cdf496d81861da
This commit is contained in:
parent
e8a742c850
commit
3b64fd8519
@ -0,0 +1,21 @@
|
||||
# vim: tabstop=4 shiftwidth=4 softtabstop=4
|
||||
|
||||
# Copyright 2013 IBM Corp.
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# 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 heat.openstack.common import gettextutils
|
||||
|
||||
|
||||
gettextutils.install('heat')
|
@ -26,7 +26,6 @@ from oslo.config import cfg
|
||||
|
||||
from heat.common import wsgi
|
||||
|
||||
from heat.openstack.common.gettextutils import _
|
||||
from heat.openstack.common import log as logging
|
||||
from heat.openstack.common import rpc
|
||||
|
||||
|
@ -21,7 +21,6 @@ import functools
|
||||
import urlparse
|
||||
import sys
|
||||
from heat.openstack.common import exception
|
||||
from heat.openstack.common.gettextutils import _
|
||||
|
||||
|
||||
OpenstackException = exception.OpenstackException
|
||||
|
@ -45,7 +45,6 @@ import webob.exc
|
||||
|
||||
from heat.common import exception
|
||||
from heat.openstack.common import gettextutils
|
||||
from heat.openstack.common.gettextutils import _
|
||||
from heat.openstack.common import importutils
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user