提交 72fee859 authored 作者: Frederic Bastien's avatar Frederic Bastien

Fix a problem found in the buildbot. im_func is not always defined!

上级 7e4e4f57
......@@ -1216,7 +1216,7 @@ class _Linker(gof.link.LocalLinker):
# raises an not implemented exception), so in those cases we
# consider that we don't have a python implementation
if ((self.maker.mode.check_py_code or thunks_c[-1] is None) and
node.op.perform.im_func != gof.op.PureOp.perform.im_func):
node.op.perform.func_code != gof.op.PureOp.perform.func_code):
p = node.op.perform
thunk = (lambda p = p, i = node_input_storage, o = node_output_storage, n =
node: p(n, [x[0] for x in i], o))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论