cubicweb/migration.py
changeset 12567 26744ad37953
parent 12536 c98e213f4eb2
child 12629 6b314fc558ed
--- a/cubicweb/migration.py	Fri Apr 05 17:21:14 2019 +0200
+++ b/cubicweb/migration.py	Fri Apr 05 17:58:19 2019 +0200
@@ -16,7 +16,6 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """utilities for instances migration"""
-from __future__ import print_function
 
 import sys
 import os
@@ -25,8 +24,6 @@
 from os.path import exists, join, basename, splitext
 from itertools import chain
 
-from six import string_types
-
 from logilab.common import IGNORED_EXTENSIONS
 from logilab.common.decorators import cached
 from logilab.common.configuration import REQUIRED, read_old_config
@@ -405,7 +402,7 @@
         """modify the list of used cubes in the in-memory config
         returns newly inserted cubes, including dependencies
         """
-        if isinstance(cubes, string_types):
+        if isinstance(cubes, str):
             cubes = (cubes,)
         origcubes = self.config.cubes()
         newcubes = [p for p in self.config.expand_cubes(cubes)