diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-06-11 23:13:41 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-06-11 23:13:41 +1200 |
commit | e9f8eb1f6bf1a30bba304769507c1eb6ef64c3cf (patch) | |
tree | f43829ac75d65d0147c618007e87975f18b8fd3e | |
parent | 7b86560dedaad88baaab87bd5c1be7719ec1810e (diff) | |
download | mitmproxy-e9f8eb1f6bf1a30bba304769507c1eb6ef64c3cf.tar.gz mitmproxy-e9f8eb1f6bf1a30bba304769507c1eb6ef64c3cf.tar.bz2 mitmproxy-e9f8eb1f6bf1a30bba304769507c1eb6ef64c3cf.zip |
Satisfy lint
-rw-r--r-- | netlib/debug.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/netlib/debug.py b/netlib/debug.py index 792ff52e..303a2f6f 100644 --- a/netlib/debug.py +++ b/netlib/debug.py @@ -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: |