[py3k] unicode → six.text_type
authorRémi Cardona <remi.cardona@logilab.fr>
Mon, 21 Sep 2015 18:58:12 +0200
changeset 10725 1776c94a74e8
parent 10724 aa3eedba866c
child 10726 bb91f581c389
[py3k] unicode → six.text_type
web/test/unittest_urlrewrite.py
--- a/web/test/unittest_urlrewrite.py	Mon Sep 21 18:35:38 2015 +0200
+++ b/web/test/unittest_urlrewrite.py	Mon Sep 21 18:58:12 2015 +0200
@@ -16,6 +16,8 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 
+from six import text_type
+
 from logilab.common import tempattr
 
 from cubicweb.devtools.testlib import CubicWebTC
@@ -137,8 +139,8 @@
                  rgx_action(r'Any X WHERE X surname %(sn)s, '
                             'X firstname %(fn)s',
                             argsgroups=('sn', 'fn'),
-                            transforms={'sn' : unicode.capitalize,
-                                        'fn' : unicode.lower,})),
+                            transforms={'sn' : text_type.capitalize,
+                                        'fn' : text_type.lower,})),
                 ]
         with self.admin_access.web_request() as req:
             rewriter = TestSchemaBasedRewriter(req)