diff options
author | THOMAS J. COCOZZELLO <tjcocozz@us.ibm.com> | 2015-09-03 16:29:52 -0500 |
---|---|---|
committer | Tom Cocozzello <tjcocozz@us.ibm.com> | 2015-10-05 12:50:26 +0000 |
commit | 5db9852314b7632f36737e05b9028ed2468278bf (patch) | |
tree | 3d36f16ec10ccfbfe1268849e11656386ac1b045 /glance_store/common | |
parent | a03174504774b111868c8662d248c6d0033d02c8 (diff) | |
download | glance_store-5db9852314b7632f36737e05b9028ed2468278bf.tar.gz |
Activate pep8 check that _ is imported
Remove the specification in tox.ini that _ is a builtin so that
it will no longer assume that _ does not need to be imported.
This helps ensure that the _ from i18n is used.
Activating this check did flag violations and they were fixed
in this patch.
Change-Id: Ia7e4c75b2126a67784683d1c22f0e24bc44113a4
Diffstat (limited to 'glance_store/common')
-rw-r--r-- | glance_store/common/auth.py | 1 | ||||
-rw-r--r-- | glance_store/common/config.py | 1 | ||||
-rw-r--r-- | glance_store/common/utils.py | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/glance_store/common/auth.py b/glance_store/common/auth.py index beeb729..b5fa06e 100644 --- a/glance_store/common/auth.py +++ b/glance_store/common/auth.py @@ -37,6 +37,7 @@ from six.moves import range from six.moves import urllib from glance_store import exceptions +from glance_store.i18n import _ LOG = logging.getLogger(__name__) diff --git a/glance_store/common/config.py b/glance_store/common/config.py index cda9ac0..3263176 100644 --- a/glance_store/common/config.py +++ b/glance_store/common/config.py @@ -27,6 +27,7 @@ from paste import deploy from glance.version import version_info as version from glance_store.common import utils +from glance_store.i18n import _ paste_deploy_opts = [ cfg.StrOpt('flavor', diff --git a/glance_store/common/utils.py b/glance_store/common/utils.py index d9d64af..3ade953 100644 --- a/glance_store/common/utils.py +++ b/glance_store/common/utils.py @@ -28,6 +28,8 @@ except ImportError: from oslo_utils import encodeutils import six +from glance_store.i18n import _ + LOG = logging.getLogger(__name__) |