summaryrefslogtreecommitdiff
path: root/coverage/files.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
commitd5a89ab843542f88544a0f55900093329ef6b85c (patch)
tree096e088a8193c4d3ecd96755f9f35793d2a0bb76 /coverage/files.py
parent33d7789e8e6c15aae52cf3e36eecbd48f36e248e (diff)
downloadpython-coveragepy-git-d5a89ab843542f88544a0f55900093329ef6b85c.tar.gz
Fix 'filename' to be 'file name' in English.
Diffstat (limited to 'coverage/files.py')
-rw-r--r--coverage/files.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/coverage/files.py b/coverage/files.py
index 1b6f6281..2b8727d4 100644
--- a/coverage/files.py
+++ b/coverage/files.py
@@ -38,7 +38,7 @@ def relative_directory():
def relative_filename(filename):
"""Return the relative form of `filename`.
- The filename will be relative to the current directory when the
+ The file name will be relative to the current directory when the
`set_relative_directory` was called.
"""
@@ -48,7 +48,7 @@ def relative_filename(filename):
return filename
def canonical_filename(filename):
- """Return a canonical filename for `filename`.
+ """Return a canonical file name for `filename`.
An absolute path with no redundant components and normalized case.
@@ -68,7 +68,7 @@ def canonical_filename(filename):
def flat_rootname(filename):
- """A base for a flat filename to correspond to this file.
+ """A base for a flat file name to correspond to this file.
Useful for writing files about the code where you want all the files in
the same directory, but need to differentiate same-named files from
@@ -210,7 +210,7 @@ class ModuleMatcher(object):
class FnmatchMatcher(object):
- """A matcher for files by filename pattern."""
+ """A matcher for files by file name pattern."""
def __init__(self, pats):
self.pats = pats[:]
# fnmatch is platform-specific. On Windows, it does the Windows thing
@@ -233,7 +233,7 @@ class FnmatchMatcher(object):
return self.pats
def match(self, fpath):
- """Does `fpath` match one of our filename patterns?"""
+ """Does `fpath` match one of our file name patterns?"""
return self.re.match(fpath) is not None