diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2019-09-03 13:34:39 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-09-03 13:34:39 -0400 |
commit | b168b68a641e32b1114d4a5a668b08a01e48c8e6 (patch) | |
tree | ca3391bcc535e384a2f9d8d4530b33aaf637563f /coverage/debug.py | |
parent | 49958ac11fe3b441db2a6c1c691a7abdbf9cdd08 (diff) | |
download | python-coveragepy-git-b168b68a641e32b1114d4a5a668b08a01e48c8e6.tar.gz |
--debug=self now goes on a second line for better readability
Diffstat (limited to 'coverage/debug.py')
-rw-r--r-- | coverage/debug.py | 4 |
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() |