summaryrefslogtreecommitdiff
path: root/coverage/debug.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/debug.py')
-rw-r--r--coverage/debug.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/coverage/debug.py b/coverage/debug.py
index ce22d725..2c5c6aaf 100644
--- a/coverage/debug.py
+++ b/coverage/debug.py
@@ -91,6 +91,12 @@ class DebugControlString(DebugControl):
return self.raw_output.getvalue()
+class NoDebugging(object):
+ """A replacement for DebugControl that will never try to do anything."""
+ def should(self, option):
+ return False
+
+
def info_header(label):
"""Make a nice header string."""
return "--{0:-<60s}".format(" "+label+" ")