[py3k] Fix unicode added in commit 2350424585f8
authorRémi Cardona <remi.cardona@logilab.fr>
Thu, 19 Nov 2015 17:16:19 +0100
changeset 10845 75c60e58ce6b
parent 10844 f3007bbd77e9
child 10846 d186820c5f7a
[py3k] Fix unicode added in commit 2350424585f8
server/sources/__init__.py
--- a/server/sources/__init__.py	Thu Nov 19 15:56:22 2015 +0100
+++ b/server/sources/__init__.py	Thu Nov 19 17:16:19 2015 +0100
@@ -111,7 +111,7 @@
         self.uri = source_config.pop('uri')
         # unormalize to avoid non-ascii characters in logger's name, this will cause decoding error
         # on logging
-        set_log_methods(self, getLogger('cubicweb.sources.' + unormalize(unicode(self.uri))))
+        set_log_methods(self, getLogger('cubicweb.sources.' + unormalize(text_type(self.uri))))
         source_config.pop('type')
         self.update_config(None, self.check_conf_dict(eid, source_config,
                                                       fail_if_unknown=False))