提交 a3575cff authored 作者: Frederic Bastien's avatar Frederic Bastien

Fix test in python 3

上级 b8772f4f
...@@ -77,7 +77,7 @@ def d3viz(fct, outfile, copy_deps=True, *args, **kwargs): ...@@ -77,7 +77,7 @@ def d3viz(fct, outfile, copy_deps=True, *args, **kwargs):
# Create DOT graph # Create DOT graph
formatter = PyDotFormatter(*args, **kwargs) formatter = PyDotFormatter(*args, **kwargs)
graph = formatter(fct) graph = formatter(fct)
dot_graph = escape_quotes(graph.create_dot()).replace('\n', '').replace('\r', '') dot_graph = escape_quotes(str(graph.create_dot())).replace('\n', '').replace('\r', '')
# Create output directory if not existing # Create output directory if not existing
outdir = os.path.dirname(outfile) outdir = os.path.dirname(outfile)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论