From a0c6f75f9bfb9d1c40da0e27cf0afc2559ecbba9 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 7 Nov 2015 15:14:19 +0300 Subject: [PATCH] compiler.types: fix obsolete iodelay references. --- artiq/compiler/types.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/artiq/compiler/types.py b/artiq/compiler/types.py index 2490b866f..e7570d607 100644 --- a/artiq/compiler/types.py +++ b/artiq/compiler/types.py @@ -262,9 +262,9 @@ class TRPCFunction(TFunction): attributes = OrderedDict() def __init__(self, args, optargs, ret, service): - super().__init__(args, optargs, ret, - delay=FixedDelay(iodelay.Constant(0))) + super().__init__(args, optargs, ret) self.service = service + self.delay = TFixedDelay(iodelay.Const(0)) def unify(self, other): if isinstance(other, TRPCFunction) and \ @@ -285,9 +285,9 @@ class TCFunction(TFunction): attributes = OrderedDict() def __init__(self, args, ret, name): - super().__init__(args, OrderedDict(), ret, - delay=FixedDelay(iodelay.Constant(0))) - self.name = name + super().__init__(args, OrderedDict(), ret) + self.name = name + self.delay = TFixedDelay(iodelay.Const(0)) def unify(self, other): if isinstance(other, TCFunction) and \