# HG changeset patch # User Denis Laxalde # Date 1491324433 -7200 # Node ID 8672535c3b89d424ed03c90a27e68825e4021504 # Parent 4d874c2fbb5ffe8abd4798dd5bdb02ca105d02f2 [py3] Use six.text_type instead of unicode in _CWSourceCfgMixIn.update_config() diff -r 4d874c2fbb5f -r 8672535c3b89 cubicweb/entities/sources.py --- 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)