changeset 1271:1deee6ab6af3

Give keyword argument directly.
author Marcel Keller <mkeller@cs.au.dk>
date Thu, 08 Oct 2009 15:17:10 +0200
parents f626a6dfef43
children 727eab7a4e2a
files viff/runtime.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/viff/runtime.py	Thu Oct 08 14:28:12 2009 +0200
+++ b/viff/runtime.py	Thu Oct 08 15:17:10 2009 +0200
@@ -831,8 +831,7 @@
             while items < len(program_counters):
                 self.increment_pc()
                 self.fork_pc()
-                item_count, result = func(*args,
-                                          **{"quantity": len(program_counters) - items})
+                item_count, result = func(quantity=len(program_counters) - items, *args)
                 items += item_count
                 results.append(result)
                 self.unfork_pc()