From: Luis A. Garcia Date: Mon, 12 Aug 2013 21:45:46 +0000 (+0000) Subject: Revert "Add missing _ imports to allow doc generation" X-Git-Tag: 2014.1~212^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=3b64fd85190af18d39ca718c9bb11456367e6e80;p=openstack-build%2Fheat-build.git Revert "Add missing _ imports to allow doc generation" This change reverts commit 0453785f3f7b2a578b433cb0544394aac9bcfb95 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 --- diff --git a/heat/__init__.py b/heat/__init__.py index e69de29b..57e2d0f6 100644 --- a/heat/__init__.py +++ b/heat/__init__.py @@ -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') diff --git a/heat/common/config.py b/heat/common/config.py index 87533868..8feeacb3 100644 --- a/heat/common/config.py +++ b/heat/common/config.py @@ -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 diff --git a/heat/common/exception.py b/heat/common/exception.py index f0006d54..3492c3ac 100644 --- a/heat/common/exception.py +++ b/heat/common/exception.py @@ -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 diff --git a/heat/common/wsgi.py b/heat/common/wsgi.py index 717455f9..b2e142e5 100644 --- a/heat/common/wsgi.py +++ b/heat/common/wsgi.py @@ -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