]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Fix Hacking H304 Warnings
authorDirk Mueller <dirk@dmllr.de>
Sat, 1 Jun 2013 13:39:46 +0000 (15:39 +0200)
committerDirk Mueller <dirk@dmllr.de>
Sat, 1 Jun 2013 16:20:24 +0000 (18:20 +0200)
And also enable it permanently.

Change-Id: Iae319ecaee86049bc25330e25c4f672e3b158851

heat/common/heat_keystoneclient.py
tox.ini

index 2e0228b34bd09a5c39dd6ff3e7d4494948cc07e1..e9e475b68b2cd655e088b823f3df765df1b6bfbf 100644 (file)
@@ -13,7 +13,7 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-import exception
+from heat.openstack.common import exception
 
 import eventlet
 from keystoneclient.v2_0 import client as kc
diff --git a/tox.ini b/tox.ini
index b04c7a7697adfde9075054a8aed9fda957e2e2a5..82c25e87bb298d863a3b9d75accfc7c9222c0b9c 100644 (file)
--- 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,H201,H702,H703
+ignore = F403,F841,H201,H302,H303,H306,H403,H404,H702,H703
 show-source = true
 builtins = _
 exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools,build