From e83dbc1117b1c2b282907ec04c046b0d15efdf8f Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 7 Jun 2013 15:44:23 +0200 Subject: [PATCH] Enable H403 Fix the only two places where it triggered alongway. Change-Id: Ib76e0e072c2d51a9c782f37d5f5df964f2db968f --- heat/common/template_format.py | 3 ++- heat/db/sqlalchemy/models.py | 3 ++- tox.ini | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/heat/common/template_format.py b/heat/common/template_format.py index 020efc7c..76c8043e 100644 --- a/heat/common/template_format.py +++ b/heat/common/template_format.py @@ -68,7 +68,8 @@ def default_for_missing(tpl, version_param, versions): def convert_json_to_yaml(json_str): '''Convert a string containing the AWS JSON template format - to an equivalent string containing the Heat YAML format.''' + to an equivalent string containing the Heat YAML format. + ''' global key_order # Replace AWS format version with Heat format version diff --git a/heat/db/sqlalchemy/models.py b/heat/db/sqlalchemy/models.py index 79ca9c75..8dc553df 100644 --- a/heat/db/sqlalchemy/models.py +++ b/heat/db/sqlalchemy/models.py @@ -124,7 +124,8 @@ class HeatBase(object): def iteritems(self): """Make the model object behave like a dict. - Includes attributes from joins.""" + Includes attributes from joins. + """ local = dict(self) joined = dict([(k, v) for k, v in self.__dict__.iteritems() if not k[0] == '_']) diff --git a/tox.ini b/tox.ini index 82c25e87..fe0a4351 100644 --- a/tox.ini +++ b/tox.ini @@ -22,7 +22,7 @@ commands = python setup.py testr --coverage [flake8] -ignore = F403,F841,H201,H302,H303,H306,H403,H404,H702,H703 +ignore = F403,F841,H201,H302,H303,H306,H404,H702,H703 show-source = true builtins = _ exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools,build -- 2.45.2