提交 a9c44a89 authored 作者: Frederic's avatar Frederic

Fix crash in pydotprint

上级 4c39c3f1
...@@ -766,11 +766,9 @@ def pydotprint(fct, outfile=None, ...@@ -766,11 +766,9 @@ def pydotprint(fct, outfile=None,
varstr = '%s %s' % (dstr, str(var.type)) varstr = '%s %s' % (dstr, str(var.type))
elif (var in input_update and elif (var in input_update and
input_update[var].name is not None): input_update[var].name is not None):
if var_with_name_simple: varstr = input_update[var].name
varstr = input_update[var].variable.name if not var_with_name_simple:
else: varstr += str(var.type)
varstr = (input_update[var].variable.name +
str(var.type))
else: else:
# a var id is needed as otherwise var with the same type will be # a var id is needed as otherwise var with the same type will be
# merged in the graph. # merged in the graph.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论