Merge "Remove six murano/db"

This commit is contained in:
Zuul 2020-04-20 01:58:21 +00:00 committed by Gerrit Code Review
commit 8308ef1b5c
3 changed files with 2 additions and 5 deletions

View File

@ -13,13 +13,12 @@
# under the License.
from alembic import op
import six
import sqlalchemy as sa
def transform_table(name, renames, defaults, *columns, **kw):
def escape(val):
if isinstance(val, six.string_types):
if isinstance(val, str):
return "'{0}'".format(val)
elif val is None:
return 'NULL'

View File

@ -16,7 +16,6 @@
from keystoneclient import exceptions as ks_exceptions
from oslo_config import cfg
from oslo_log import log as logging
import six
import yaml
from murano.common import auth_utils
@ -261,7 +260,7 @@ class EnvironmentServices(object):
elif isinstance(data, list):
return [EnvironmentServices._objectify(v, replacements)
for v in data]
elif isinstance(data, six.string_types):
elif isinstance(data, str):
for key, value in replacements.items():
data = data.replace('%' + key + '%', value)
return data

View File

@ -14,7 +14,6 @@
import uuid
from oslo_db import exception as db_exception
from six.moves import range
from webob import exc
from murano.db.catalog import api