summaryrefslogtreecommitdiff
path: root/horizon/exceptions.py
diff options
context:
space:
mode:
authorTatiana Mazur <tmazur@mirantis.com>2013-08-02 13:23:46 +0400
committerTatiana Mazur <tmazur@mirantis.com>2013-08-22 17:39:09 +0400
commit953d1b9793029a59826f0106f3bd725cbe3793ec (patch)
tree5e6cc4c089161c5e13d8b4ce51871c53e46f1e9d /horizon/exceptions.py
parentc4ac732aa9403518affb2f0929a73d42a14df353 (diff)
downloadhorizon-953d1b9793029a59826f0106f3bd725cbe3793ec.tar.gz
Enable H302 check
This patch replaces some method imports with module imports and makes H302 test enabled. Fixes bug 1188531 Change-Id: Ibfbddeaa19cbbb244da58ffd5c918c41f03a0c65
Diffstat (limited to 'horizon/exceptions.py')
-rw-r--r--horizon/exceptions.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/horizon/exceptions.py b/horizon/exceptions.py
index a5d484970..d1fb70e92 100644
--- a/horizon/exceptions.py
+++ b/horizon/exceptions.py
@@ -22,14 +22,14 @@ import logging
import os
import sys
-from django.contrib.auth import logout
-from django.core.management import color_style
-from django.http import HttpRequest
-from django.utils.translation import ugettext_lazy as _
-from django.views.debug import CLEANSED_SUBSTITUTE
-from django.views.debug import SafeExceptionReporterFilter
-
-from horizon.conf import HORIZON_CONFIG
+from django.contrib.auth import logout # noqa
+from django.core.management import color_style # noqa
+from django.http import HttpRequest # noqa
+from django.utils.translation import ugettext_lazy as _ # noqa
+from django.views.debug import CLEANSED_SUBSTITUTE # noqa
+from django.views.debug import SafeExceptionReporterFilter # noqa
+
+from horizon.conf import HORIZON_CONFIG # noqa
from horizon import messages
LOG = logging.getLogger(__name__)