diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2010-07-25 16:36:00 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-07-25 16:36:00 -0400 |
commit | 6e7bb792d11c353924364ee07262865e8b8732af (patch) | |
tree | f724fe3b9ae682894d343e73beccbdf39e122219 /coverage/control.py | |
parent | 56dc10dd967b3366c3a3c71545b5bda7cd51f093 (diff) | |
download | python-coveragepy-git-6e7bb792d11c353924364ee07262865e8b8732af.tar.gz |
This should have been hidden from the public API.
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/coverage/control.py b/coverage/control.py index 578a853b..6ec36e77 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -143,18 +143,18 @@ class coverage(object): if not self.config.cover_pylib: # Look at where the "os" module is located. That's the indication # for "installed with the interpreter". - os_dir = self.canonical_dir(os.__file__) + os_dir = self._canonical_dir(os.__file__) self.pylib_dirs.append(os_dir) # In a virtualenv, there're actually two lib directories. Find the # other one. This is kind of ad-hoc, but it works. - random_dir = self.canonical_dir(random.__file__) + random_dir = self._canonical_dir(random.__file__) if random_dir != os_dir: self.pylib_dirs.append(random_dir) # To avoid tracing the coverage code itself, we skip anything located # where we are. - self.cover_dir = self.canonical_dir(__file__) + self.cover_dir = self._canonical_dir(__file__) # The matchers for _should_trace, created when tracing starts. self.source_match = None @@ -164,7 +164,7 @@ class coverage(object): # Only _harvest_data once per measurement cycle. self._harvested = False - def canonical_dir(self, f): + def _canonical_dir(self, f): """Return the canonical directory of the file `f`.""" return os.path.split(self.file_locator.canonical_filename(f))[0] |