summaryrefslogtreecommitdiff
path: root/coverage/debug.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/debug.py')
-rw-r--r--coverage/debug.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/debug.py b/coverage/debug.py
index de5d9319..c5fee683 100644
--- a/coverage/debug.py
+++ b/coverage/debug.py
@@ -72,11 +72,11 @@ class DebugControl(object):
`msg` is the line to write. A newline will be appended.
"""
+ self.output.write(msg+"\n")
if self.should('self'):
caller_self = inspect.stack()[1][0].f_locals.get('self')
if caller_self is not None:
- msg = "[self: {!r}] {}".format(caller_self, msg)
- self.output.write(msg+"\n")
+ self.output.write("self: {!r}\n".format(caller_self))
if self.should('callers'):
dump_stack_frames(out=self.output, skip=1)
self.output.flush()