Use hacking import_exceptions for gettextutils._
Instead of using # noqa every time gettextutils._ is used, add an exception in tox.ini Change-Id: I0eb74a162568bf4f320682402e2dc63feadf675e
This commit is contained in:
@@ -20,7 +20,7 @@ from rally.benchmark import base
|
||||
from rally.benchmark import utils
|
||||
from rally import consts
|
||||
from rally import exceptions
|
||||
from rally.openstack.common.gettextutils import _ # noqa
|
||||
from rally.openstack.common.gettextutils import _
|
||||
from rally.openstack.common import log as logging
|
||||
from rally import utils as rutils
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import uuid
|
||||
from rally.benchmark import base
|
||||
from rally.benchmark import cleanup_utils
|
||||
from rally import exceptions as rally_exceptions
|
||||
from rally.openstack.common.gettextutils import _ # noqa
|
||||
from rally.openstack.common.gettextutils import _
|
||||
from rally.openstack.common import log as logging
|
||||
from rally import osclients
|
||||
from rally import utils
|
||||
|
||||
@@ -22,7 +22,7 @@ from oslo.config import cfg
|
||||
|
||||
from rally.openstack.common.apiclient import exceptions
|
||||
from rally.openstack.common import cliutils
|
||||
from rally.openstack.common.gettextutils import _ # noqa
|
||||
from rally.openstack.common.gettextutils import _
|
||||
from rally.openstack.common import log as logging
|
||||
from rally import version
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ import prettytable
|
||||
|
||||
from rally.cmd import cliutils
|
||||
from rally import db
|
||||
from rally.openstack.common.gettextutils import _ # noqa
|
||||
from rally.openstack.common.gettextutils import _
|
||||
from rally.orchestrator import api
|
||||
from rally import processing
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@ import sys
|
||||
|
||||
from rally.cmd import cliutils
|
||||
from rally import db
|
||||
from rally.openstack.common.gettextutils import _ # noqa
|
||||
|
||||
|
||||
class DBCommands(object):
|
||||
|
||||
@@ -18,7 +18,7 @@ import jsonschema
|
||||
|
||||
from rally import consts
|
||||
from rally import exceptions
|
||||
from rally.openstack.common.gettextutils import _ # noqa
|
||||
from rally.openstack.common.gettextutils import _
|
||||
from rally.openstack.common import log as logging
|
||||
from rally import utils
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import os
|
||||
import tempfile
|
||||
|
||||
from rally.deploy import engine
|
||||
from rally.openstack.common.gettextutils import _ # noqa
|
||||
from rally.openstack.common.gettextutils import _
|
||||
from rally.openstack.common import log as logging
|
||||
from rally.serverprovider import provider
|
||||
from rally import utils
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
from oslo.config import cfg
|
||||
import sys
|
||||
|
||||
from rally.openstack.common.gettextutils import _ # noqa
|
||||
from rally.openstack.common.gettextutils import _
|
||||
from rally.openstack.common import log as logging
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
@@ -17,7 +17,7 @@ import netaddr
|
||||
import os
|
||||
import uuid
|
||||
|
||||
from rally.openstack.common.gettextutils import _ # noqa
|
||||
from rally.openstack.common.gettextutils import _
|
||||
from rally.openstack.common import log as logging
|
||||
from rally.serverprovider import provider
|
||||
from rally import utils
|
||||
|
||||
@@ -19,7 +19,7 @@ import urllib2
|
||||
|
||||
from rally.benchmark import utils as benchmark_utils
|
||||
from rally import exceptions
|
||||
from rally.openstack.common.gettextutils import _ # noqa
|
||||
from rally.openstack.common.gettextutils import _
|
||||
from rally.openstack.common import log as logging
|
||||
from rally import osclients
|
||||
from rally.serverprovider import provider
|
||||
|
||||
@@ -23,7 +23,7 @@ import string
|
||||
import time
|
||||
|
||||
from rally import exceptions
|
||||
from rally.openstack.common.gettextutils import _ # noqa
|
||||
from rally.openstack.common.gettextutils import _
|
||||
from rally.openstack.common import log as logging
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
@@ -22,7 +22,7 @@ import time
|
||||
import traceback
|
||||
|
||||
from rally import exceptions
|
||||
from rally.openstack.common.gettextutils import _ # noqa
|
||||
from rally.openstack.common.gettextutils import _
|
||||
from rally.openstack.common import importutils
|
||||
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ import sys
|
||||
import time
|
||||
|
||||
from rally import exceptions
|
||||
from rally.openstack.common.gettextutils import _ # noqa
|
||||
from rally.openstack.common.gettextutils import _
|
||||
from rally import test
|
||||
from rally import utils
|
||||
|
||||
|
||||
Reference in New Issue
Block a user