提交 e738df89 authored 作者: Olivier Breuleux's avatar Olivier Breuleux

fixed bugs in RModule

上级 001e2cd8
...@@ -236,11 +236,11 @@ class RModule(compile.FancyModule): ...@@ -236,11 +236,11 @@ class RModule(compile.FancyModule):
def __init__(self, components = {}, **kwcomponents): def __init__(self, components = {}, **kwcomponents):
super(RModule, self).__init__(components, **kwcomponents) super(RModule, self).__init__(components, **kwcomponents)
self.random = T.RandomKit('rkit') self.random = RandomKit('rkit')
self._components['_rkit'] = KitComponent(self.random) self._components['_rkit'] = compile.KitComponent(self.random)
def __wrapper__(self, x): def __wrapper__(self, x):
x = wrap(x) x = compile.module.wrap(x)
if isinstance(x, compile.Method): if isinstance(x, compile.Method):
x.kits += [self.random] x.kits += [self.random]
return x return x
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论