Remove hacking exception for oslo.messaging import
olso.messaging moved away from namespace packages so this check is no longer needed. Change-Id: I76ac67cf38a22350bdb68351f5bb3f38cb9763c5
This commit is contained in:
parent
b76becd303
commit
0eedb98a9a
@ -52,9 +52,7 @@ string_translation = re.compile(r"[^_]*_\(\s*('|\")")
|
|||||||
underscore_import_check = re.compile(r"(.)*import _(.)*")
|
underscore_import_check = re.compile(r"(.)*import _(.)*")
|
||||||
# We need this for cases where they have created their own _ function.
|
# We need this for cases where they have created their own _ function.
|
||||||
custom_underscore_check = re.compile(r"(.)*_\s*=\s*(.)*")
|
custom_underscore_check = re.compile(r"(.)*_\s*=\s*(.)*")
|
||||||
# TODO(toabctl): Remove the oslo.messaging exception when package
|
oslo_namespace_imports = re.compile(r"from[\s]*oslo[.](.*)")
|
||||||
# moved away from namespace
|
|
||||||
oslo_namespace_imports = re.compile(r"from[\s]*oslo[.](?!messaging)(.*)")
|
|
||||||
|
|
||||||
|
|
||||||
class BaseASTChecker(ast.NodeVisitor):
|
class BaseASTChecker(ast.NodeVisitor):
|
||||||
|
@ -27,11 +27,11 @@ import uuid
|
|||||||
|
|
||||||
import fixtures
|
import fixtures
|
||||||
import mock
|
import mock
|
||||||
from oslo.messaging import conffixture as messaging_conffixture
|
|
||||||
from oslo_concurrency import lockutils
|
from oslo_concurrency import lockutils
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_config import fixture as config_fixture
|
from oslo_config import fixture as config_fixture
|
||||||
from oslo_log import log
|
from oslo_log import log
|
||||||
|
from oslo_messaging import conffixture as messaging_conffixture
|
||||||
import oslotest.base as base_test
|
import oslotest.base as base_test
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user