From: Monty Taylor Date: Thu, 16 May 2013 16:24:17 +0000 (-0700) Subject: Clean up a pyflakes error in a comment. X-Git-Tag: 2014.1~594^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=05d532cc384f3fb9d22a513765ea6c453cc030bf;p=openstack-build%2Fheat-build.git Clean up a pyflakes error in a comment. This is a little-bit silly, but it's the last thing. pyflakes parses python lines that are in docstring comments that are prefaced by >>>. So, without the import, pyflakes complains about undefined import. Change-Id: Ibac77367efb07b65b992694b2de19473ec9ef473 --- diff --git a/heat/engine/parser.py b/heat/engine/parser.py index d11c7605..7e7089a2 100644 --- a/heat/engine/parser.py +++ b/heat/engine/parser.py @@ -581,7 +581,9 @@ def resolve_static_data(template, stack, parameters, snippet): Example: - >>> template = Template(template_format.parse(template_path)) + >>> from heat.common import template_format + >>> template_str = '# JSON or YAML encoded template' + >>> template = Template(template_format.parse(template_str)) >>> parameters = Parameters('stack', template, {'KeyName': 'my_key'}) >>> resolve_static_data(template, None, parameters, {'Ref': 'KeyName'}) 'my_key'