提交 8f6a1411 authored 作者: Frederic's avatar Frederic

fix crash in pydotprint just introduced

上级 e2f2cbd4
...@@ -847,10 +847,10 @@ def pydotprint(fct, outfile=None, ...@@ -847,10 +847,10 @@ def pydotprint(fct, outfile=None,
label = label[:max_label_size - 3] + '...' label = label[:max_label_size - 3] + '...'
param = {} param = {}
if hasattr(node.op, 'view_map') and id in reduce( if hasattr(node.op, 'view_map') and id in reduce(
list.__add__, node.op.view_map.values()): list.__add__, node.op.view_map.values(), []):
param['color'] = 'blue' param['color'] = 'blue'
elif hasattr(node.op, 'destroy_map') and id in reduce( elif hasattr(node.op, 'destroy_map') and id in reduce(
list.__add__, node.op.destroy_map.values()): list.__add__, node.op.destroy_map.values(), []):
param['color'] = 'red' param['color'] = 'red'
if var.owner is None: if var.owner is None:
if high_contrast: if high_contrast:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论