diff --git a/ceilometer/agent.py b/ceilometer/agent.py index 1e274c834..789153fc2 100644 --- a/ceilometer/agent.py +++ b/ceilometer/agent.py @@ -25,7 +25,7 @@ import urlparse from stevedore import extension from ceilometer.openstack.common import context -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import service as os_service from ceilometer import pipeline diff --git a/ceilometer/alarm/evaluator/__init__.py b/ceilometer/alarm/evaluator/__init__.py index 6d09ea324..87d67da5d 100644 --- a/ceilometer/alarm/evaluator/__init__.py +++ b/ceilometer/alarm/evaluator/__init__.py @@ -26,7 +26,7 @@ from ceilometerclient import client as ceiloclient from oslo.config import cfg import six -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import timeutils diff --git a/ceilometer/alarm/evaluator/combination.py b/ceilometer/alarm/evaluator/combination.py index 9fc03d192..80ad564c8 100644 --- a/ceilometer/alarm/evaluator/combination.py +++ b/ceilometer/alarm/evaluator/combination.py @@ -20,7 +20,7 @@ import itertools from ceilometer.alarm import evaluator -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log LOG = log.getLogger(__name__) diff --git a/ceilometer/alarm/evaluator/threshold.py b/ceilometer/alarm/evaluator/threshold.py index 08bd85375..af424e6b7 100644 --- a/ceilometer/alarm/evaluator/threshold.py +++ b/ceilometer/alarm/evaluator/threshold.py @@ -22,7 +22,7 @@ import operator from ceilometer.alarm import evaluator from ceilometer.alarm.evaluator import utils -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import timeutils diff --git a/ceilometer/alarm/notifier/log.py b/ceilometer/alarm/notifier/log.py index e3baabeaf..2b275f188 100644 --- a/ceilometer/alarm/notifier/log.py +++ b/ceilometer/alarm/notifier/log.py @@ -18,7 +18,7 @@ """Log alarm notifier.""" from ceilometer.alarm import notifier -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log LOG = log.getLogger(__name__) diff --git a/ceilometer/alarm/notifier/rest.py b/ceilometer/alarm/notifier/rest.py index 93a9f9c90..570a1f2fb 100644 --- a/ceilometer/alarm/notifier/rest.py +++ b/ceilometer/alarm/notifier/rest.py @@ -24,7 +24,7 @@ import six.moves.urllib.parse as urlparse from oslo.config import cfg from ceilometer.alarm import notifier -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import jsonutils from ceilometer.openstack.common import log diff --git a/ceilometer/alarm/partition/coordination.py b/ceilometer/alarm/partition/coordination.py index 77d406589..c8d4812f8 100644 --- a/ceilometer/alarm/partition/coordination.py +++ b/ceilometer/alarm/partition/coordination.py @@ -21,7 +21,7 @@ import random import uuid from ceilometer.alarm import rpc as rpc_alarm -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import timeutils diff --git a/ceilometer/alarm/rpc.py b/ceilometer/alarm/rpc.py index f080fbe9b..515a1b89a 100644 --- a/ceilometer/alarm/rpc.py +++ b/ceilometer/alarm/rpc.py @@ -20,7 +20,7 @@ from oslo.config import cfg from ceilometer import messaging from ceilometer.openstack.common import context -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.storage import models diff --git a/ceilometer/alarm/service.py b/ceilometer/alarm/service.py index c51c22363..328f633bd 100644 --- a/ceilometer/alarm/service.py +++ b/ceilometer/alarm/service.py @@ -28,7 +28,7 @@ from stevedore import extension from ceilometer.alarm.partition import coordination from ceilometer.alarm import rpc as rpc_alarm from ceilometer import messaging -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import network_utils from ceilometer.openstack.common import service as os_service diff --git a/ceilometer/api/controllers/v2.py b/ceilometer/api/controllers/v2.py index f30ce98e4..330fa94ba 100644 --- a/ceilometer/api/controllers/v2.py +++ b/ceilometer/api/controllers/v2.py @@ -48,7 +48,7 @@ import wsmeext.pecan as wsme_pecan from ceilometer.api import acl from ceilometer import messaging from ceilometer.openstack.common import context -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import strutils from ceilometer.openstack.common import timeutils diff --git a/ceilometer/api/middleware.py b/ceilometer/api/middleware.py index 2e04c5160..193e5e94b 100644 --- a/ceilometer/api/middleware.py +++ b/ceilometer/api/middleware.py @@ -29,7 +29,7 @@ import webob from ceilometer.api import hooks from ceilometer.openstack.common import gettextutils -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log LOG = log.getLogger(__name__) diff --git a/ceilometer/api/v1/blueprint.py b/ceilometer/api/v1/blueprint.py index a0a2a40a8..5f31e4c75 100644 --- a/ceilometer/api/v1/blueprint.py +++ b/ceilometer/api/v1/blueprint.py @@ -89,7 +89,7 @@ import datetime import flask -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import timeutils diff --git a/ceilometer/central/manager.py b/ceilometer/central/manager.py index e5a24b7ed..91d9a2673 100644 --- a/ceilometer/central/manager.py +++ b/ceilometer/central/manager.py @@ -20,7 +20,7 @@ from keystoneclient.v2_0 import client as ksclient from oslo.config import cfg from ceilometer import agent -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log cfg.CONF.import_group('service_credentials', 'ceilometer.service') diff --git a/ceilometer/collector.py b/ceilometer/collector.py index 727034572..0949182bf 100644 --- a/ceilometer/collector.py +++ b/ceilometer/collector.py @@ -22,7 +22,7 @@ import msgpack from oslo.config import cfg from ceilometer import messaging -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import service as os_service from ceilometer.openstack.common import units diff --git a/ceilometer/compute/notifications/cpu.py b/ceilometer/compute/notifications/cpu.py index 575bfe467..fdb52653d 100644 --- a/ceilometer/compute/notifications/cpu.py +++ b/ceilometer/compute/notifications/cpu.py @@ -20,7 +20,7 @@ events. """ from ceilometer.compute import notifications -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import timeutils from ceilometer import sample diff --git a/ceilometer/compute/nova_notifier.py b/ceilometer/compute/nova_notifier.py index b240e766e..864cd7921 100644 --- a/ceilometer/compute/nova_notifier.py +++ b/ceilometer/compute/nova_notifier.py @@ -37,7 +37,7 @@ from nova import utils from stevedore import extension from ceilometer.compute.virt import inspector -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ # This module runs inside the nova compute diff --git a/ceilometer/compute/pollsters/cpu.py b/ceilometer/compute/pollsters/cpu.py index c3ebba418..585542a61 100644 --- a/ceilometer/compute/pollsters/cpu.py +++ b/ceilometer/compute/pollsters/cpu.py @@ -21,7 +21,7 @@ from ceilometer.compute import plugin from ceilometer.compute.pollsters import util from ceilometer.compute.virt import inspector as virt_inspector -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer import sample diff --git a/ceilometer/compute/pollsters/disk.py b/ceilometer/compute/pollsters/disk.py index b0c2c0426..ccc967e78 100644 --- a/ceilometer/compute/pollsters/disk.py +++ b/ceilometer/compute/pollsters/disk.py @@ -26,7 +26,7 @@ import six from ceilometer.compute import plugin from ceilometer.compute.pollsters import util from ceilometer.compute.virt import inspector as virt_inspector -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer import sample diff --git a/ceilometer/compute/pollsters/memory.py b/ceilometer/compute/pollsters/memory.py index 9781bb71b..547e00399 100644 --- a/ceilometer/compute/pollsters/memory.py +++ b/ceilometer/compute/pollsters/memory.py @@ -16,7 +16,7 @@ from ceilometer.compute import plugin from ceilometer.compute.pollsters import util from ceilometer.compute.virt import inspector as virt_inspector -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer import sample diff --git a/ceilometer/compute/pollsters/net.py b/ceilometer/compute/pollsters/net.py index a75d56b0f..cd0ae8125 100644 --- a/ceilometer/compute/pollsters/net.py +++ b/ceilometer/compute/pollsters/net.py @@ -23,7 +23,7 @@ import copy from ceilometer.compute import plugin from ceilometer.compute.pollsters import util from ceilometer.compute.virt import inspector as virt_inspector -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import timeutils from ceilometer import sample diff --git a/ceilometer/compute/virt/hyperv/utilsv2.py b/ceilometer/compute/virt/hyperv/utilsv2.py index 1e45f6f76..e06beb7e9 100644 --- a/ceilometer/compute/virt/hyperv/utilsv2.py +++ b/ceilometer/compute/virt/hyperv/utilsv2.py @@ -28,7 +28,7 @@ if sys.platform == 'win32': from oslo.config import cfg from ceilometer.compute.virt import inspector -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log as logging CONF = cfg.CONF diff --git a/ceilometer/compute/virt/inspector.py b/ceilometer/compute/virt/inspector.py index cc7cf7a34..0a4af33cd 100644 --- a/ceilometer/compute/virt/inspector.py +++ b/ceilometer/compute/virt/inspector.py @@ -23,7 +23,7 @@ import collections from oslo.config import cfg from stevedore import driver -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log diff --git a/ceilometer/compute/virt/libvirt/inspector.py b/ceilometer/compute/virt/libvirt/inspector.py index c7465c108..34bc613d2 100644 --- a/ceilometer/compute/virt/libvirt/inspector.py +++ b/ceilometer/compute/virt/libvirt/inspector.py @@ -21,7 +21,7 @@ from lxml import etree from oslo.config import cfg from ceilometer.compute.virt import inspector as virt_inspector -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log as logging libvirt = None diff --git a/ceilometer/dispatcher/database.py b/ceilometer/dispatcher/database.py index 76fe5c4cb..32d81f6f4 100644 --- a/ceilometer/dispatcher/database.py +++ b/ceilometer/dispatcher/database.py @@ -17,7 +17,7 @@ # under the License. from ceilometer import dispatcher -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import timeutils from ceilometer.publisher import utils as publisher_utils diff --git a/ceilometer/energy/kwapi.py b/ceilometer/energy/kwapi.py index 18127f7c9..9a9479e7b 100644 --- a/ceilometer/energy/kwapi.py +++ b/ceilometer/energy/kwapi.py @@ -21,7 +21,7 @@ from oslo.config import cfg import requests from ceilometer.central import plugin -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer import sample diff --git a/ceilometer/event/converter.py b/ceilometer/event/converter.py index 71c29e35a..d1772e070 100644 --- a/ceilometer/event/converter.py +++ b/ceilometer/event/converter.py @@ -24,7 +24,7 @@ from oslo.config import cfg import six import yaml -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import timeutils from ceilometer.storage import models diff --git a/ceilometer/event/endpoint.py b/ceilometer/event/endpoint.py index 56f2a27e8..58c21db58 100644 --- a/ceilometer/event/endpoint.py +++ b/ceilometer/event/endpoint.py @@ -24,7 +24,7 @@ from stevedore import extension from ceilometer.event import converter as event_converter from ceilometer import messaging -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer import service from ceilometer.storage import models diff --git a/ceilometer/hardware/plugin.py b/ceilometer/hardware/plugin.py index 11aaa483c..243cf4d35 100644 --- a/ceilometer/hardware/plugin.py +++ b/ceilometer/hardware/plugin.py @@ -26,7 +26,7 @@ import six from ceilometer.central import plugin from ceilometer.hardware import inspector as insloader -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import network_utils diff --git a/ceilometer/network/floatingip.py b/ceilometer/network/floatingip.py index 347fdeb4c..d8e429e62 100644 --- a/ceilometer/network/floatingip.py +++ b/ceilometer/network/floatingip.py @@ -21,7 +21,7 @@ from ceilometer.central import plugin from ceilometer import nova_client -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import timeutils from ceilometer import sample diff --git a/ceilometer/network/notifications.py b/ceilometer/network/notifications.py index 60a14c283..d70c58e91 100644 --- a/ceilometer/network/notifications.py +++ b/ceilometer/network/notifications.py @@ -23,7 +23,7 @@ from oslo.config import cfg import oslo.messaging -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer import plugin from ceilometer import sample diff --git a/ceilometer/network/statistics/opendaylight/client.py b/ceilometer/network/statistics/opendaylight/client.py index c9acc55d2..a0162a1b3 100644 --- a/ceilometer/network/statistics/opendaylight/client.py +++ b/ceilometer/network/statistics/opendaylight/client.py @@ -20,7 +20,7 @@ import requests from requests import auth import six -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log diff --git a/ceilometer/network/statistics/opendaylight/driver.py b/ceilometer/network/statistics/opendaylight/driver.py index 80660dcb0..fc86c3366 100644 --- a/ceilometer/network/statistics/opendaylight/driver.py +++ b/ceilometer/network/statistics/opendaylight/driver.py @@ -19,7 +19,7 @@ from six.moves.urllib import parse as url_parse from ceilometer.network.statistics import driver from ceilometer.network.statistics.opendaylight import client -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import timeutils from ceilometer import utils diff --git a/ceilometer/notification.py b/ceilometer/notification.py index e1465a2f5..753e685b3 100644 --- a/ceilometer/notification.py +++ b/ceilometer/notification.py @@ -21,7 +21,7 @@ from stevedore import extension from ceilometer.event import endpoint as event_endpoint from ceilometer import messaging -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import service as os_service from ceilometer import pipeline diff --git a/ceilometer/notifier.py b/ceilometer/notifier.py index fb84c7686..b9b898115 100644 --- a/ceilometer/notifier.py +++ b/ceilometer/notifier.py @@ -21,7 +21,7 @@ from ceilometer.openstack.common import log as logging from ceilometer import pipeline from ceilometer import transformer -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from stevedore import extension diff --git a/ceilometer/objectstore/swift.py b/ceilometer/objectstore/swift.py index e85e0662c..abfc75c38 100644 --- a/ceilometer/objectstore/swift.py +++ b/ceilometer/objectstore/swift.py @@ -25,7 +25,7 @@ from keystoneclient import exceptions from oslo.config import cfg from swiftclient import client as swift -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import timeutils from ceilometer import plugin diff --git a/ceilometer/pipeline.py b/ceilometer/pipeline.py index 000691697..2b1c26501 100644 --- a/ceilometer/pipeline.py +++ b/ceilometer/pipeline.py @@ -26,7 +26,7 @@ import os from oslo.config import cfg import yaml -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer import publisher from ceilometer import transformer as xformer diff --git a/ceilometer/plugin.py b/ceilometer/plugin.py index a017dbc89..7c443abe3 100644 --- a/ceilometer/plugin.py +++ b/ceilometer/plugin.py @@ -27,7 +27,7 @@ import six from ceilometer import messaging from ceilometer.openstack.common import context -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log LOG = log.getLogger(__name__) diff --git a/ceilometer/publisher/file.py b/ceilometer/publisher/file.py index 9bad319e5..70f662819 100644 --- a/ceilometer/publisher/file.py +++ b/ceilometer/publisher/file.py @@ -20,7 +20,7 @@ import logging import logging.handlers import six.moves.urllib.parse as urlparse -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer import publisher diff --git a/ceilometer/publisher/rpc.py b/ceilometer/publisher/rpc.py index 8f1a602fb..9f733791a 100644 --- a/ceilometer/publisher/rpc.py +++ b/ceilometer/publisher/rpc.py @@ -28,7 +28,7 @@ import oslo.messaging import oslo.messaging._drivers.common from ceilometer import messaging -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer import publisher from ceilometer.publisher import utils diff --git a/ceilometer/publisher/udp.py b/ceilometer/publisher/udp.py index a68015324..39a9a9bac 100644 --- a/ceilometer/publisher/udp.py +++ b/ceilometer/publisher/udp.py @@ -24,7 +24,7 @@ import socket import msgpack from oslo.config import cfg -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import network_utils from ceilometer import publisher diff --git a/ceilometer/service.py b/ceilometer/service.py index fd4964fdf..5eed5e89a 100644 --- a/ceilometer/service.py +++ b/ceilometer/service.py @@ -26,7 +26,7 @@ from stevedore import named from ceilometer import messaging from ceilometer.openstack.common import gettextutils -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer import utils diff --git a/ceilometer/storage/__init__.py b/ceilometer/storage/__init__.py index afb12370e..e38520de1 100644 --- a/ceilometer/storage/__init__.py +++ b/ceilometer/storage/__init__.py @@ -24,7 +24,7 @@ from oslo.config import cfg import six from stevedore import driver -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer import utils diff --git a/ceilometer/storage/impl_hbase.py b/ceilometer/storage/impl_hbase.py index da579fb1a..590370973 100644 --- a/ceilometer/storage/impl_hbase.py +++ b/ceilometer/storage/impl_hbase.py @@ -30,7 +30,7 @@ import six.moves.urllib.parse as urlparse import bson.json_util import happybase -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import network_utils from ceilometer.openstack.common import timeutils diff --git a/ceilometer/storage/impl_log.py b/ceilometer/storage/impl_log.py index ea621ae30..3c3984fda 100644 --- a/ceilometer/storage/impl_log.py +++ b/ceilometer/storage/impl_log.py @@ -18,7 +18,7 @@ """Simple logging storage backend. """ -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.storage import base diff --git a/ceilometer/storage/impl_sqlalchemy.py b/ceilometer/storage/impl_sqlalchemy.py index ac4cfb9b4..4c6712c82 100644 --- a/ceilometer/storage/impl_sqlalchemy.py +++ b/ceilometer/storage/impl_sqlalchemy.py @@ -36,7 +36,7 @@ from sqlalchemy.orm import aliased from ceilometer.openstack.common.db import exception as dbexc from ceilometer.openstack.common.db.sqlalchemy import migration import ceilometer.openstack.common.db.sqlalchemy.session as sqlalchemy_session -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import timeutils from ceilometer import storage diff --git a/ceilometer/storage/pymongo_base.py b/ceilometer/storage/pymongo_base.py index f83c23c6c..cea51d97e 100644 --- a/ceilometer/storage/pymongo_base.py +++ b/ceilometer/storage/pymongo_base.py @@ -22,7 +22,7 @@ import pymongo import weakref -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import network_utils from ceilometer.storage import base diff --git a/ceilometer/tests/network/statistics/opendaylight/test_client.py b/ceilometer/tests/network/statistics/opendaylight/test_client.py index ed506f735..751730a28 100644 --- a/ceilometer/tests/network/statistics/opendaylight/test_client.py +++ b/ceilometer/tests/network/statistics/opendaylight/test_client.py @@ -19,7 +19,7 @@ import six from six.moves.urllib import parse as url_parse from ceilometer.network.statistics.opendaylight import client -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import test diff --git a/ceilometer/transformer/conversions.py b/ceilometer/transformer/conversions.py index 3a7d079f8..57736625c 100644 --- a/ceilometer/transformer/conversions.py +++ b/ceilometer/transformer/conversions.py @@ -19,7 +19,7 @@ import collections import re -from ceilometer.openstack.common.gettextutils import _ # noqa +from ceilometer.openstack.common.gettextutils import _ from ceilometer.openstack.common import log from ceilometer.openstack.common import timeutils from ceilometer import sample diff --git a/tox.ini b/tox.ini index 4d89d62aa..fbb64896a 100644 --- a/tox.ini +++ b/tox.ini @@ -47,3 +47,7 @@ ignore = None builtins = _ exclude=.venv,.git,.tox,dist,doc,./ceilometer/openstack/common,*lib/python*,*egg,tools,nova_tests,build show-source = True + +[hacking] +import_exceptions = + ceilometer.openstack.common.gettextutils._