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

Code simplification, this is done bellow already

上级 d2c39c4e
......@@ -67,9 +67,9 @@ def add_tag_trace(thing, user_line=1):
tr = simple_extract_stack(limit=limit)[:-1]
# Different python version use different sementic for
# limit. python 2.7 include the call to extrack_stack. The -1 get
# rid of it. We also want to get rid of the add_tag_trace call.
if tr and "add_tag_trace" in tr[-1][-1]:
tr = tr[:-1]
# rid of it.
# Get rid of Theano internal
while tr:
file_path = tr[-1][0]
rm = False
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论