summaryrefslogtreecommitdiff
path: root/coverage/data.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-08-20 13:44:11 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-08-20 13:44:11 -0400
commit8e5e579f8b9b70345ff8b2ed6650040b73cc7574 (patch)
treee57aa138b3e0b6a8817bf592d737c40be88865ca /coverage/data.py
parent4a2c55378422df624c9928327a493c7b2b9c7400 (diff)
downloadpython-coveragepy-8e5e579f8b9b70345ff8b2ed6650040b73cc7574.tar.gz
Fix 'filename' to be 'file name' in English.
Diffstat (limited to 'coverage/data.py')
-rw-r--r--coverage/data.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/coverage/data.py b/coverage/data.py
index 89c5b36..974764b 100644
--- a/coverage/data.py
+++ b/coverage/data.py
@@ -84,16 +84,16 @@ class CoverageData(object):
# The data file format is JSON, with these keys:
#
- # * lines: a dict mapping filenames to lists of line numbers
+ # * lines: a dict mapping file names to lists of line numbers
# executed::
#
# { "file1": [17,23,45], "file2": [1,2,3], ... }
#
- # * arcs: a dict mapping filenames to lists of line number pairs::
+ # * arcs: a dict mapping file names to lists of line number pairs::
#
# { "file1": [[17,23], [17,25], [25,26]], ... }
#
- # * file_tracers: a dict mapping filenames to plugin names::
+ # * file_tracers: a dict mapping file names to plugin names::
#
# { "file1": "django.coverage", ... }
#
@@ -235,11 +235,11 @@ class CoverageData(object):
def line_counts(self, fullpath=False):
"""Return a dict summarizing the line coverage data.
- Keys are based on the filenames, and values are the number of executed
+ Keys are based on the file names, and values are the number of executed
lines. If `fullpath` is true, then the keys are the full pathnames of
the files, otherwise they are the basenames of the files.
- Returns a dict mapping filenames to counts of lines.
+ Returns a dict mapping file names to counts of lines.
"""
summ = {}
@@ -610,7 +610,7 @@ class CoverageDataFiles(object):
`basename` is the name of the file to use for storing data.
"""
- # Construct the filename that will be used for data storage.
+ # Construct the file name that will be used for data storage.
self.filename = os.path.abspath(basename or ".coverage")
def erase(self, parallel=False):