diff --git a/oorq/tasks.py b/oorq/tasks.py index 4fab42f..60d1866 100644 --- a/oorq/tasks.py +++ b/oorq/tasks.py @@ -34,7 +34,7 @@ def make_chunks(ids, n_chunks=None, size=None): raise ValueError("only n_chunks or size must be passed") if not size: size = int(ceil(len(ids) / n_chunks)) - return [ids[x:x + size] for x in xrange(0, len(ids), size)] + return [ids[x:x + size] for x in range(0, len(ids), size)] def execute(conf_attrs, dbname, uid, obj, method, *args, **kw):