Change oslo.serialization to oslo_serialization
The oslo libraries are moving away from namespace packages. bp drop-namespace-packages Change-Id: I76dc9f733b222144f0274f8854877587c3501d1e
This commit is contained in:
parent
dbb5395620
commit
4f2694fa06
@ -10,7 +10,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from oslo.serialization import jsonutils
|
||||
from oslo_serialization import jsonutils
|
||||
|
||||
from keystoneclient import utils
|
||||
|
||||
|
@ -24,8 +24,8 @@ import re
|
||||
|
||||
def check_oslo_namespace_imports(logical_line, blank_before, filename):
|
||||
oslo_namespace_imports = re.compile(
|
||||
r"(((from)|(import))\s+oslo\.utils)|"
|
||||
"(from\s+oslo\s+import\s+utils)")
|
||||
r"(((from)|(import))\s+oslo\.((serialization)|(utils)))|"
|
||||
"(from\s+oslo\s+import\s+((serialization)|(utils)))")
|
||||
|
||||
if re.match(oslo_namespace_imports, logical_line):
|
||||
msg = ("K333: '%s' must be used instead of '%s'.") % (
|
||||
|
@ -18,7 +18,7 @@ import os
|
||||
import time
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo.serialization import jsonutils
|
||||
from oslo_serialization import jsonutils
|
||||
from oslo_utils import importutils
|
||||
import requests
|
||||
import six
|
||||
|
Loading…
Reference in New Issue
Block a user