fix pep8 issues with in PR 3057

上级 a3afdd97
...@@ -954,12 +954,12 @@ def pydotprint(fct, outfile=None, ...@@ -954,12 +954,12 @@ def pydotprint(fct, outfile=None,
else: else:
try: try:
g.write(outfile, prog='dot', format=format) g.write(outfile, prog='dot', format=format)
except pd.InvocationException as e: except pd.InvocationException:
# based on https://github.com/Theano/Theano/issues/2988 # based on https://github.com/Theano/Theano/issues/2988
if map(int, pd.__version__.split(".")) < [1, 0, 28]: if map(int, pd.__version__.split(".")) < [1, 0, 28]:
raise Exception("Old version of pydot detected, which can cause" raise Exception("Old version of pydot detected, which can "
" issues with pydot printing. Try upgrading " "cause issues with pydot printing. Try "
"pydot version to a newer one") "upgrading pydot version to a newer one")
raise raise
if print_output_file: if print_output_file:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论