--- a/cubicweb/misc/migration/3.10.0_Any.py Fri Apr 05 17:21:14 2019 +0200
+++ b/cubicweb/misc/migration/3.10.0_Any.py Fri Apr 05 17:58:19 2019 +0200
@@ -1,5 +1,3 @@
-from six import text_type
-
add_entity_type('CWSource')
add_relation_definition('CWSource', 'cw_source', 'CWSource')
add_entity_type('CWSourceHostConfig')
@@ -18,7 +16,7 @@
continue
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=text_type(uri), type=text_type(cfg['adapter']),
+ create_entity('CWSource', name=uri, type=cfg['adapter'],
config=config)
commit()