From f098c5c695812d25e8cc8c5e5d37732864f5e2fb Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 23 Nov 2012 12:40:57 +0100 Subject: [PATCH] pytholite/compiler: pass keyword arguments to gen_io --- migen/pytholite/compiler.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/migen/pytholite/compiler.py b/migen/pytholite/compiler.py index 5f6420f6e..34e9a8c20 100644 --- a/migen/pytholite/compiler.py +++ b/migen/pytholite/compiler.py @@ -110,9 +110,9 @@ class _Compiler: else: raise NotImplementedError else: - return self.visit_io_pattern(sa, node.targets, callee, value.args, statements) + return self.visit_io_pattern(sa, node.targets, callee, value.args, value.keywords, statements) - def visit_io_pattern(self, sa, targets, model, args, statements): + def visit_io_pattern(self, sa, targets, model, args, keywords, statements): # first statement is = () if len(targets) != 1 or not isinstance(targets[0], ast.Name): raise NotImplementedError("Unrecognized I/O pattern") @@ -154,7 +154,7 @@ class _Compiler: raise NotImplementedError from_model.append((tregs, fstatement.value)) - states, exit_states = gen_io(self, modelname, model, args, from_model) + states, exit_states = gen_io(self, modelname, model, args, keywords, from_model) sa.assemble(states, exit_states) return fstatement @@ -222,7 +222,7 @@ class _Compiler: if not isinstance(yvalue, ast.Call) or not isinstance(yvalue.func, ast.Name): raise NotImplementedError("Unrecognized I/O pattern") callee = self.symdict[yvalue.func.id] - states, exit_states = gen_io(self, None, callee, yvalue.args, []) + states, exit_states = gen_io(self, None, callee, yvalue.args, yvalue.keywords, []) sa.assemble(states, exit_states) else: raise NotImplementedError