summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-09-29 12:35:45 +0000
committerGerrit Code Review <review@openstack.org>2014-09-29 12:35:45 +0000
commit28977be7287a5ce5d85eb023da0924732675389e (patch)
tree79e167dfdf34740c4ef50c1c2be66cc89b3aceb4
parent12bd40f91ddfc98ac9e8c13ee8beb6e0a50e0042 (diff)
parent19dbcbbb896b3b3655daf4b88a4ec1ff76ae342c (diff)
downloadoslo-concurrency-28977be7287a5ce5d85eb023da0924732675389e.tar.gz
Merge "Add hacking import exception for i18n"
-rw-r--r--oslo/concurrency/lockutils.py2
-rw-r--r--oslo/concurrency/processutils.py2
-rw-r--r--tox.ini4
3 files changed, 6 insertions, 2 deletions
diff --git a/oslo/concurrency/lockutils.py b/oslo/concurrency/lockutils.py
index ba98347..1b6cc1a 100644
--- a/oslo/concurrency/lockutils.py
+++ b/oslo/concurrency/lockutils.py
@@ -28,7 +28,7 @@ import weakref
from oslo.config import cfg
-from oslo.concurrency._i18n import _, _LE, _LI # noqa
+from oslo.concurrency._i18n import _, _LE, _LI
from oslo.concurrency.openstack.common import fileutils
diff --git a/oslo/concurrency/processutils.py b/oslo/concurrency/processutils.py
index 1c4d052..95c94bb 100644
--- a/oslo/concurrency/processutils.py
+++ b/oslo/concurrency/processutils.py
@@ -30,7 +30,7 @@ from eventlet import greenthread
from oslo.utils import strutils
import six
-from oslo.concurrency._i18n import _ # noqa
+from oslo.concurrency._i18n import _
LOG = logging.getLogger(__name__)
diff --git a/tox.ini b/tox.ini
index 56138b3..cc5db6a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -49,3 +49,7 @@ show-source = True
ignore = H305,H307,H405,E126
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
+
+[hacking]
+import_exceptions =
+ oslo.concurrency._i18n