From a7072c02bd2f9f4f5de97be0e85db32265756109 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 7 Oct 2009 05:31:03 -0400 Subject: Basic plumbing for a --branch option. --- coverage/control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coverage/control.py') diff --git a/coverage/control.py b/coverage/control.py index ba642e44..8f54a641 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -29,7 +29,7 @@ class coverage: """ def __init__(self, data_file=None, data_suffix=False, cover_pylib=False, - auto_data=False, timid=False): + auto_data=False, timid=False, branch=False): """Create a new coverage measurement context. `data_file` is the base name of the data file to use, defaulting to @@ -65,7 +65,7 @@ class coverage: # cheap hack, since the rest of the command line arguments aren't # recognized, but it solves some users' problems. timid = timid or ('--timid' in os.environ.get('COVERAGE_OPTIONS', '')) - self.collector = Collector(self._should_trace, timid=timid) + self.collector = Collector(self._should_trace, timid=timid, branch=branch) # Create the data file. if data_suffix: -- cgit v1.2.1