server/hook.py
changeset 10669 155c29e0ed1c
parent 10663 54b8a1f249fb
child 10903 da30851f9706
--- a/server/hook.py	Tue Sep 15 17:10:58 2015 +0200
+++ b/server/hook.py	Fri Sep 18 14:29:53 2015 +0200
@@ -384,7 +384,7 @@
                            (main_filter.frometypes is not None  or \
                             main_filter.toetypes is not None):
                             continue
-                        first_kwargs = _iter_kwargs(entities, eids_from_to, kwargs).next()
+                        first_kwargs = next(_iter_kwargs(entities, eids_from_to, kwargs))
                         if not main_filter(hook, cnx, **first_kwargs):
                             pruned.add(hook)
         return pruned