migration.py
changeset 10612 84468b90e9c1
parent 10589 7c23b7de2b8d
child 10615 6c497fe389d2
--- a/migration.py	Wed Sep 16 11:23:51 2015 +0200
+++ b/migration.py	Mon Sep 14 16:03:07 2015 +0200
@@ -27,6 +27,8 @@
 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
@@ -397,7 +399,7 @@
         """modify the list of used cubes in the in-memory config
         returns newly inserted cubes, including dependencies
         """
-        if isinstance(cubes, basestring):
+        if isinstance(cubes, string_types):
             cubes = (cubes,)
         origcubes = self.config.cubes()
         newcubes = [p for p in self.config.expand_cubes(cubes)