提交 576c2624 authored 作者: Pierre Luc Carrier's avatar Pierre Luc Carrier

Rename var to avoid conflict with function str()

上级 6a732dd7
...@@ -956,9 +956,9 @@ def pydotprint_variables(vars, ...@@ -956,9 +956,9 @@ def pydotprint_variables(vars,
try: try:
import pydot as pd import pydot as pd
except ImportError: except ImportError:
str = ("Failed to import pydot. You must install pydot for " + err = ("Failed to import pydot. You must install pydot for " +
"`pydotprint_variables` to work.") "`pydotprint_variables` to work.")
print str print err
return return
g = pd.Dot() g = pd.Dot()
my_list = {} my_list = {}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论