mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
Satisfy lint
This commit is contained in:
parent
7b86560ded
commit
e9f8eb1f6b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user