Satisfy lint

This commit is contained in:
Aldo Cortesi 2016-06-11 23:13:41 +12:00
parent 7b86560ded
commit e9f8eb1f6b

View File

@ -81,7 +81,11 @@ def dump_stacks(signal, frame, file=sys.stdout):
id2name = dict([(th.ident, th.name) for th in threading.enumerate()])
code = []
for threadId, stack in sys._current_frames().items():
code.append("\n# Thread: %s(%d)" % (id2name.get(threadId,""), threadId))
code.append(
"\n# Thread: %s(%d)" % (
id2name.get(threadId, ""), threadId
)
)
for filename, lineno, name, line in traceback.extract_stack(stack):
code.append('File: "%s", line %d, in %s' % (filename, lineno, name))
if line: