[server/test] use next() builtin instead of next() method
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 19 Oct 2015 14:27:04 +0200
changeset 10815 bc679f7e96d8
parent 10814 a13db4185129
child 10816 d4a26e94f54a
[server/test] use next() builtin instead of next() method
server/test/data-migractions/schema.py
--- a/server/test/data-migractions/schema.py	Mon Oct 19 14:26:32 2015 +0200
+++ b/server/test/data-migractions/schema.py	Mon Oct 19 14:27:04 2015 +0200
@@ -85,7 +85,7 @@
     object = 'SubDivision'
 
 from cubicweb.schemas.base import CWUser
-CWUser.get_relations('login').next().fulltextindexed = True
+next(CWUser.get_relations('login')).fulltextindexed = True
 
 class Note(WorkflowableEntityType):
     date = String(maxsize=10)