From 28c5c494f9eb9d8fc371751908ba123e398225fc Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Mon, 20 May 2013 15:46:27 +1000 Subject: [PATCH] Fix PEP H301 (one import per line) Change-Id: I7b0c991c869c903e60123ad5bdf876b06d83e3e9 --- heat/common/client.py | 3 ++- heat/common/wsgi.py | 3 ++- heat/db/sqlalchemy/models.py | 3 ++- tox.ini | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/heat/common/client.py b/heat/common/client.py index 702b6131..8b8cb9d0 100644 --- a/heat/common/client.py +++ b/heat/common/client.py @@ -32,7 +32,8 @@ except ImportError: import ssl from heat.common import auth -from heat.common import exception, utils +from heat.common import exception +from heat.common import utils # common chunk size for get and put diff --git a/heat/common/wsgi.py b/heat/common/wsgi.py index 75c79039..b5788df2 100644 --- a/heat/common/wsgi.py +++ b/heat/common/wsgi.py @@ -31,7 +31,8 @@ import time import eventlet import eventlet.greenio -from eventlet.green import socket, ssl +from eventlet.green import socket +from eventlet.green import ssl import eventlet.wsgi from lxml import etree from oslo.config import cfg diff --git a/heat/db/sqlalchemy/models.py b/heat/db/sqlalchemy/models.py index 2e359d80..79ca9c75 100644 --- a/heat/db/sqlalchemy/models.py +++ b/heat/db/sqlalchemy/models.py @@ -20,7 +20,8 @@ from sqlalchemy.orm import relationship, backref, object_mapper from sqlalchemy.exc import IntegrityError from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import types as types -from json import dumps, loads +from json import dumps +from json import loads from heat.openstack.common import uuidutils from heat.openstack.common import timeutils from heat.db.sqlalchemy.session import get_session diff --git a/tox.ini b/tox.ini index e70c03eb..1859a2bf 100644 --- a/tox.ini +++ b/tox.ini @@ -22,7 +22,7 @@ commands = python setup.py testr --coverage [flake8] -ignore = H302,H303,H304,H403,H404,F403,F841,H306,H902,H201,H101,H703,H301,H702 +ignore = H302,H303,H304,H403,H404,F403,F841,H306,H902,H201,H101,H703,H702 show-source = true builtins = _ exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools,build -- 2.45.2