From: Monty Taylor Date: Thu, 16 May 2013 16:11:15 +0000 (-0700) Subject: Cleaned up some simple hacking/pyflakes errors. X-Git-Tag: 2014.1~605^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=5ea0c0e2bee14faa5d4516a527ed7c87ff3fb790;p=openstack-build%2Fheat-build.git Cleaned up some simple hacking/pyflakes errors. There are set of trivial changes that involved missing imports or unused code. No functional changes should be evident. Change-Id: If020e33674627845ea78192382bdf8977b442931 --- diff --git a/bin/heat-watch b/bin/heat-watch index e1167f5e..152b98f9 100755 --- a/bin/heat-watch +++ b/bin/heat-watch @@ -42,7 +42,6 @@ gettext.install('heat', unicode=1) from heat.cfn_client import boto_client_cloudwatch as heat_client from heat.version import version_info as version -from heat.common import config from heat.common import exception from heat.cfn_client import utils diff --git a/heat/api/openstack/v1/util.py b/heat/api/openstack/v1/util.py index f3aebc1f..fd181643 100644 --- a/heat/api/openstack/v1/util.py +++ b/heat/api/openstack/v1/util.py @@ -48,22 +48,6 @@ def identified_stack(handler): return handle_stack_method -def identified_resource(handler): - ''' - Decorator for a handler method that passes a resource identifier in place - of the various path components. - ''' - @identified_stack - @wraps(handler) - def handle_stack_method(controller, stack_identity, - resource_name, **kwargs): - resource_identity = identifier.ResourceIdentifier(stack_identity, - resource_name) - return handler(controller, req, dict(resource_identity), **kwargs) - - return handle_stack_method - - def make_url(req, identity): '''Return the URL for the supplied identity dictionary.''' try: diff --git a/heat/cfn_client/boto_client.py b/heat/cfn_client/boto_client.py index a31e853d..6229d33a 100644 --- a/heat/cfn_client/boto_client.py +++ b/heat/cfn_client/boto_client.py @@ -17,6 +17,8 @@ Client implementation based on the boto AWS client library """ +import sys + from heat.openstack.common import log as logging logger = logging.getLogger(__name__) diff --git a/heat/cfn_client/boto_client_cloudwatch.py b/heat/cfn_client/boto_client_cloudwatch.py index 111fca02..98a14c46 100644 --- a/heat/cfn_client/boto_client_cloudwatch.py +++ b/heat/cfn_client/boto_client_cloudwatch.py @@ -17,6 +17,8 @@ Client implementation based on the boto AWS client library """ +import sys + from heat.openstack.common import log as logging logger = logging.getLogger(__name__) diff --git a/heat/common/heat_keystoneclient.py b/heat/common/heat_keystoneclient.py index f90b341d..2e0228b3 100644 --- a/heat/common/heat_keystoneclient.py +++ b/heat/common/heat_keystoneclient.py @@ -13,6 +13,8 @@ # License for the specific language governing permissions and limitations # under the License. +import exception + import eventlet from keystoneclient.v2_0 import client as kc from oslo.config import cfg diff --git a/heat/tests/test_validate.py b/heat/tests/test_validate.py index 2c357b8e..019a1ac9 100644 --- a/heat/tests/test_validate.py +++ b/heat/tests/test_validate.py @@ -19,7 +19,6 @@ from heat.common import exception from heat.common import template_format from heat.engine import resources from heat.engine.resources import instance as instances -from heat.engine import resources from heat.engine import service from heat.openstack.common.importutils import try_import import heat.db.api as db_api