--- a/misc/migration/3.10.0_Any.py Tue Sep 15 18:30:05 2015 +0200
+++ b/misc/migration/3.10.0_Any.py Tue Sep 15 18:39:09 2015 +0200
@@ -1,3 +1,5 @@
+from six import text_type
+
from cubicweb.server.session import hooks_control
for uri, cfg in config.read_sources_file().items():
@@ -24,7 +26,7 @@
repo.sources_by_uri.pop(uri)
config = u'\n'.join('%s=%s' % (key, value) for key, value in cfg.items()
if key != 'adapter' and value is not None)
- create_entity('CWSource', name=unicode(uri), type=unicode(cfg['adapter']),
+ create_entity('CWSource', name=text_type(uri), type=text_type(cfg['adapter']),
config=config)
commit()