--- a/cubicweb/entities/sources.py Tue Apr 04 16:06:44 2017 +0200
+++ b/cubicweb/entities/sources.py Tue Apr 04 18:47:13 2017 +0200
@@ -21,6 +21,8 @@
from socket import gethostname
import logging
+from six import text_type
+
from logilab.common.textutils import text_to_dict
from logilab.common.configuration import OptionError
from logilab.mtconverter import xml_escape
@@ -48,7 +50,7 @@
if skip_unknown:
continue
raise
- cfgstr = unicode(generate_source_config(sconfig), self._cw.encoding)
+ cfgstr = text_type(generate_source_config(sconfig), self._cw.encoding)
self.cw_set(config=cfgstr)