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:
Brant Knudson 2015-01-20 10:47:44 -06:00
parent dbb5395620
commit 4f2694fa06
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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'.") % (

View File

@ -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