diff options
author | Brant Knudson <bknudson@us.ibm.com> | 2015-08-02 11:10:30 -0500 |
---|---|---|
committer | Brant Knudson <bknudson@us.ibm.com> | 2015-08-03 09:58:55 -0500 |
commit | b0bdeeb9e4d2afcc48bb3bc3e973f7336d639ca0 (patch) | |
tree | c8d5105ee68ee32626b9468e2b1f8d9561b4e2eb /keystone/tests/hacking | |
parent | e08d5f219ab0f42cc933d5747ef41ae079c6eb67 (diff) | |
download | keystone-b0bdeeb9e4d2afcc48bb3bc3e973f7336d639ca0.tar.gz |
Remove oslo import hacking check
The oslo libraries have removed the oslo.* modules so using this
style of imports will fail, so the hacking check verifying that
all oslo imports are done using oslo_* isn't necessary.
Change-Id: I6b318bfccd0f6dd42c67b725563d445e793acdb8
Diffstat (limited to 'keystone/tests/hacking')
-rw-r--r-- | keystone/tests/hacking/checks.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/keystone/tests/hacking/checks.py b/keystone/tests/hacking/checks.py index 5d715d918..7a760561b 100644 --- a/keystone/tests/hacking/checks.py +++ b/keystone/tests/hacking/checks.py @@ -403,17 +403,6 @@ class CheckForLoggingIssues(BaseASTChecker): return False -def check_oslo_namespace_imports(logical_line, blank_before, filename): - oslo_namespace_imports = re.compile( - r"(((from)|(import))\s+oslo\.)|(from\s+oslo\s+import\s+)") - - if re.match(oslo_namespace_imports, logical_line): - msg = ("K333: '%s' must be used instead of '%s'.") % ( - logical_line.replace('oslo.', 'oslo_'), - logical_line) - yield(0, msg) - - def dict_constructor_with_sequence_copy(logical_line): """Should use a dict comprehension instead of a dict constructor. @@ -442,5 +431,4 @@ def factory(register): register(block_comments_begin_with_a_space) register(CheckForAssertingNoneEquality) register(CheckForLoggingIssues) - register(check_oslo_namespace_imports) register(dict_constructor_with_sequence_copy) |