[server] unicode → six.text_type
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 02 Oct 2015 10:04:35 +0200
changeset 10760 c34bbdb18745
parent 10759 774b53f7dc3a
child 10761 3a455c7f2abd
[server] unicode → six.text_type
server/sqlutils.py
--- a/server/sqlutils.py	Fri Oct 02 10:04:12 2015 +0200
+++ b/server/sqlutils.py	Fri Oct 02 10:04:35 2015 +0200
@@ -27,7 +27,7 @@
 from logging import getLogger
 from datetime import time, datetime
 
-from six import string_types
+from six import string_types, text_type
 from six.moves import filter
 
 from logilab import database as db, common as lgc
@@ -484,7 +484,7 @@
             if value is not None:
                 self.values.add(value)
         def finalize(self):
-            return ', '.join(unicode(v) for v in self.values)
+            return ', '.join(text_type(v) for v in self.values)
 
     cnx.create_aggregate("GROUP_CONCAT", 1, group_concat)