summaryrefslogtreecommitdiff
path: root/coverage/debug.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-09-24 14:12:13 -0400
committerNed Batchelder <ned@nedbatchelder.com>2016-09-24 14:12:13 -0400
commitb7165a97a82eba631c70486a1e0e8910c631593f (patch)
tree036edf80a5900273d9dfc0c4b96f9b197cbb69eb /coverage/debug.py
parent2fc0358f3483283a149997b91763365354ae60bd (diff)
downloadpython-coveragepy-b7165a97a82eba631c70486a1e0e8910c631593f.tar.gz
Derp: actually make config not write a call stack for each line
Diffstat (limited to 'coverage/debug.py')
-rw-r--r--coverage/debug.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/debug.py b/coverage/debug.py
index 823d2b2..4cf0f3e 100644
--- a/coverage/debug.py
+++ b/coverage/debug.py
@@ -48,7 +48,7 @@ class DebugControl(object):
if self.should('pid'):
msg = "pid %5d: %s" % (os.getpid(), msg)
self.output.write(msg+"\n")
- if self.should('callers'):
+ if callers and self.should('callers'):
dump_stack_frames(out=self.output)
self.output.flush()