diff options
author | Ben Nemec <bnemec@redhat.com> | 2014-09-26 15:31:09 +0000 |
---|---|---|
committer | Ben Nemec <bnemec@redhat.com> | 2014-09-26 17:25:12 +0000 |
commit | 19dbcbbb896b3b3655daf4b88a4ec1ff76ae342c (patch) | |
tree | 76bbb5a0786e31387e8c2aa50224b92b83fd3690 | |
parent | efc43545227db0c05f9367e5501a98eb4287aaf7 (diff) | |
download | oslo-concurrency-19dbcbbb896b3b3655daf4b88a4ec1ff76ae342c.tar.gz |
Add hacking import exception for i18n
This is preferred over adding noqa's everywhere we import a
translation function.
Change-Id: I171df45b62beb9776e8dbb52e33a408a832bf86f
-rw-r--r-- | oslo/concurrency/lockutils.py | 2 | ||||
-rw-r--r-- | oslo/concurrency/processutils.py | 2 | ||||
-rw-r--r-- | tox.ini | 4 |
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__) @@ -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 |