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
commit8e5e579f8b9b70345ff8b2ed6650040b73cc7574 (patch)
treee57aa138b3e0b6a8817bf592d737c40be88865ca /coverage/files.py
parent4a2c55378422df624c9928327a493c7b2b9c7400 (diff)
downloadpython-coveragepy-8e5e579f8b9b70345ff8b2ed6650040b73cc7574.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 1b6f628..2b8727d 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