diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-20 13:44:11 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-20 13:44:11 -0400 |
commit | d5a89ab843542f88544a0f55900093329ef6b85c (patch) | |
tree | 096e088a8193c4d3ecd96755f9f35793d2a0bb76 /coverage/collector.py | |
parent | 33d7789e8e6c15aae52cf3e36eecbd48f36e248e (diff) | |
download | python-coveragepy-git-d5a89ab843542f88544a0f55900093329ef6b85c.tar.gz |
Fix 'filename' to be 'file name' in English.
Diffstat (limited to 'coverage/collector.py')
-rw-r--r-- | coverage/collector.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/coverage/collector.py b/coverage/collector.py index de111169..60eb918e 100644 --- a/coverage/collector.py +++ b/coverage/collector.py @@ -62,10 +62,10 @@ class Collector(object): ): """Create a collector. - `should_trace` is a function, taking a filename, and returning a + `should_trace` is a function, taking a file name, and returning a `coverage.FileDisposition object`. - `check_include` is a function taking a filename and a frame. It returns + `check_include` is a function taking a file name and a frame. It returns a boolean: True if the file should be traced, False if not. If `timid` is true, then a slower simpler trace function will be @@ -146,21 +146,21 @@ class Collector(object): def reset(self): """Clear collected data, and prepare to collect more.""" - # A dictionary mapping filenames to dicts with line number keys (if not - # branch coverage), or mapping filenames to dicts with line number + # A dictionary mapping file names to dicts with line number keys (if not + # branch coverage), or mapping file names to dicts with line number # pairs as keys (if branch coverage). self.data = {} - # A dictionary mapping filenames to file tracer plugin names that will + # A dictionary mapping file names to file tracer plugin names that will # handle them. self.file_tracers = {} - # The .should_trace_cache attribute is a cache from filenames to + # The .should_trace_cache attribute is a cache from file names to # coverage.FileDisposition objects, or None. When a file is first # considered for tracing, a FileDisposition is obtained from # Coverage.should_trace. Its .trace attribute indicates whether the # file should be traced or not. If it should be, a plugin with dynamic - # filenames can decide not to trace it based on the dynamic filename + # file names can decide not to trace it based on the dynamic file name # being excluded by the inclusion rules, in which case the # FileDisposition will be replaced by None in the cache. if env.PYPY: |