提交 57213bc9 authored 作者: Frederic Bastien's avatar Frederic Bastien

Simplified code

上级 582b6a67
...@@ -403,10 +403,7 @@ class PerformLinker(LocalLinker): ...@@ -403,10 +403,7 @@ class PerformLinker(LocalLinker):
# the python version # the python version
# Note : ops that implement their own make thunk don't usually # Note : ops that implement their own make thunk don't usually
# have this attribute defiend !! # have this attribute defiend !!
if hasattr(node.op, '_op_use_c_code'): old_value = getattr(node.op, '_op_use_c_code', False)
old_value = node.op._op_use_c_code
else:
old_value = False
try: try:
node.op._op_use_c_code = False node.op._op_use_c_code = False
thunks += [node.op.make_thunk(node, thunks += [node.op.make_thunk(node,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论