pytholite: fix kwargs handling
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 3 Jul 2013 15:20:05 +0000 (17:20 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 3 Jul 2013 15:20:05 +0000 (17:20 +0200)
migen/pytholite/compiler.py

index 0df85391e547fda9377b09071d197254f7748836..bfe1f8278523a80818c1a23be5394b42f42fe7ff 100644 (file)
@@ -45,8 +45,8 @@ def _process_function_args(symdict, function_def, args, kwargs):
                pass
        vararg = tuple(current_argvalue)
 
-       kwarg = OrderedDict()
-       for k, v in kwarg.items():
+       kwarg = dict()
+       for k, v in kwargs.items():
                if k in ad_positional:
                        ad_positional[k] = v
                elif k in ad_kwonly: