提交 5c0da463 authored 作者: Caglar's avatar Caglar

Added the loop over scan_ops.

上级 4b9cfe63
...@@ -102,10 +102,18 @@ def debugprint(obj, depth=-1, print_type=False, ...@@ -102,10 +102,18 @@ def debugprint(obj, depth=-1, print_type=False,
else: else:
raise TypeError("debugprint cannot print an object of this type", raise TypeError("debugprint cannot print an object of this type",
obj) obj)
scan_ops = []
for r in results_to_print: for r in results_to_print:
debugmode.debugprint(r, depth=depth, done=done, print_type=print_type, debugmode.debugprint(r, depth=depth, done=done, print_type=print_type,
file=_file, order=order, ids=ids, file=_file, order=order, ids=ids,
stop_on_name=stop_on_name) scan_ops=scan_ops, stop_on_name=stop_on_name)
for s in scan_ops:
debugmode.debugprint(s, depth=depth, done=done, print_type=print_type,
file=_file, order=order, ids=ids,
scan_ops=scan_ops, stop_on_name=stop_on_name)
if file is _file: if file is _file:
return file return file
elif file == 'str': elif file == 'str':
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论