提交 eddc6c06 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Typo fix in printed message

上级 36da58c5
...@@ -466,7 +466,8 @@ def pydotprint(fct, outfile=None, ...@@ -466,7 +466,8 @@ def pydotprint(fct, outfile=None,
try: try:
import pydot as pd import pydot as pd
except ImportError: except ImportError:
print "failed to import pydot. Yous must install pydot for this function to work." print ("Failed to import pydot. You must install pydot for "
"`pydotprint` to work.")
return return
g=pd.Dot() g=pd.Dot()
...@@ -708,7 +709,8 @@ def pydotprint_variables(vars, ...@@ -708,7 +709,8 @@ def pydotprint_variables(vars,
try: try:
import pydot as pd import pydot as pd
except ImportError: except ImportError:
print "failed to import pydot. Yous must install pydot for this function to work." print ("Failed to import pydot. You must install pydot for "
"`pydotprint_variables` to work.")
return return
g=pd.Dot() g=pd.Dot()
my_list = {} my_list = {}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论