summaryrefslogtreecommitdiff
path: root/coverage
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-12-03 08:59:29 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-12-03 08:59:29 -0500
commit36e40f58a476e6d7ddf3746a31d0e96667bfd66e (patch)
tree8b89234599f2ddf332e2f036707b2b8128d421a8 /coverage
parent30af11a626ef2ac748fa5b098166b5c626b36ef1 (diff)
downloadpython-coveragepy-git-36e40f58a476e6d7ddf3746a31d0e96667bfd66e.tar.gz
Clean trailing whitespace.
--HG-- branch : config
Diffstat (limited to 'coverage')
-rw-r--r--coverage/control.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/coverage/control.py b/coverage/control.py
index 39e3dfbb..c1d32e9d 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -3,7 +3,7 @@
import atexit, os, socket
from coverage.annotate import AnnotateReporter
-from coverage.backward import string_class
+from coverage.backward import string_class
from coverage.codeunit import code_unit_factory, CodeUnit
from coverage.collector import Collector
from coverage.config import CoverageConfig
@@ -51,7 +51,7 @@ class coverage(object):
If `branch` is true, then branch coverage will be measured in addition
to the usual statement coverage.
-
+
`config_file` determines what config file to read. If it is a string,
it is the name of the config file to read. If it is True, then a
standard file is read (".coveragerc"). If it is False, then no file is
@@ -69,13 +69,13 @@ class coverage(object):
if config_file is True:
config_file = ".coveragerc"
self.config.from_file(config_file)
-
+
# 3: from environment variables:
self.config.from_environment('COVERAGE_OPTIONS')
env_data_file = os.environ.get('COVERAGE_FILE')
if env_data_file:
self.config.data_file = env_data_file
-
+
# 4: from constructor arguments:
self.config.from_args(
data_file=data_file, cover_pylib=cover_pylib, timid=timid,
@@ -226,7 +226,7 @@ class coverage(object):
"""
self.config.exclude_list.append(regex)
self._compile_exclude()
-
+
def _compile_exclude(self):
"""Build the internal usable form of the exclude list."""
self.exclude_re = "(" + ")|(".join(self.config.exclude_list) + ")"