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:
Luis A. Garcia 2013-08-12 21:45:46 +00:00
parent e8a742c850
commit 3b64fd8519
4 changed files with 21 additions and 3 deletions

View File

@ -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')

View File

@ -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

View File

@ -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

View File

@ -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