summaryrefslogtreecommitdiff
path: root/coverage
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-11-28 05:45:33 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-11-28 06:01:22 -0500
commitaa62abd5ff33926f44fe4ec9e985ed3d72ea1f9d (patch)
tree301823a5d57e89561e0761d48cd2cf68a6d501c7 /coverage
parent79c66c00cfc98f04b676e8fb32dc5f089a5eff3c (diff)
downloadpython-coveragepy-git-aa62abd5ff33926f44fe4ec9e985ed3d72ea1f9d.tar.gz
style: fix spelling
un-executed, white space, time stamp.
Diffstat (limited to 'coverage')
-rw-r--r--coverage/config.py4
-rw-r--r--coverage/control.py4
-rw-r--r--coverage/inorout.py2
-rw-r--r--coverage/parser.py5
-rw-r--r--coverage/phystokens.py2
-rw-r--r--coverage/results.py2
-rw-r--r--coverage/templite.py2
7 files changed, 10 insertions, 11 deletions
diff --git a/coverage/config.py b/coverage/config.py
index 994154f6..b964ba89 100644
--- a/coverage/config.py
+++ b/coverage/config.py
@@ -93,7 +93,7 @@ class HandyConfigParser(configparser.ConfigParser):
"""Read a list of strings.
The value of `section` and `option` is treated as a comma- and newline-
- separated list of strings. Each value is stripped of whitespace.
+ separated list of strings. Each value is stripped of white space.
Returns the list of strings.
@@ -111,7 +111,7 @@ class HandyConfigParser(configparser.ConfigParser):
"""Read a list of full-line regexes.
The value of `section` and `option` is treated as a newline-separated
- list of regexes. Each value is stripped of whitespace.
+ list of regexes. Each value is stripped of white space.
Returns the list of strings.
diff --git a/coverage/control.py b/coverage/control.py
index bbb26355..37e61cfb 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -812,7 +812,7 @@ class Coverage:
"""After saving data, look for warnings, post-work, etc.
Warn about things that should have happened but didn't.
- Look for unexecuted files.
+ Look for un-executed files.
"""
# If there are still entries in the source_pkgs_unmatched list,
@@ -825,7 +825,7 @@ class Coverage:
self._warn("No data was collected.", slug="no-data-collected")
# Touch all the files that could have executed, so that we can
- # mark completely unexecuted files as 0% covered.
+ # mark completely un-executed files as 0% covered.
if self._data is not None:
file_paths = collections.defaultdict(list)
for file_path, plugin_name in self._inorout.find_possibly_unexecuted_files():
diff --git a/coverage/inorout.py b/coverage/inorout.py
index 0d3f6d67..d69837f9 100644
--- a/coverage/inorout.py
+++ b/coverage/inorout.py
@@ -576,7 +576,7 @@ class InOrOut:
file_path = canonical_filename(file_path)
if self.omit_match and self.omit_match.match(file_path):
# Turns out this file was omitted, so don't pull it back
- # in as unexecuted.
+ # in as un-executed.
continue
yield file_path, plugin_name
diff --git a/coverage/parser.py b/coverage/parser.py
index 135a3b18..1bf1951a 100644
--- a/coverage/parser.py
+++ b/coverage/parser.py
@@ -177,11 +177,10 @@ class PythonParser:
first_on_line = True
if ttext.strip() and toktype != tokenize.COMMENT:
- # A non-whitespace token.
+ # A non-white-space token.
empty = False
if first_line is None:
- # The token is not whitespace, and is the first in a
- # statement.
+ # The token is not white space, and is the first in a statement.
first_line = slineno
# Check whether to end an excluded suite.
if excluding and indent <= exclude_indent:
diff --git a/coverage/phystokens.py b/coverage/phystokens.py
index 07ad5349..d1181939 100644
--- a/coverage/phystokens.py
+++ b/coverage/phystokens.py
@@ -95,7 +95,7 @@ def source_token_lines(source):
If you concatenate all the token texts, and then join them with newlines,
you should have your original `source` back, with two differences:
- trailing whitespace is not preserved, and a final line with no newline
+ trailing white space is not preserved, and a final line with no newline
is indistinguishable from a final line with a newline.
"""
diff --git a/coverage/results.py b/coverage/results.py
index 493d2fc8..2c97a18f 100644
--- a/coverage/results.py
+++ b/coverage/results.py
@@ -84,7 +84,7 @@ class Analysis:
@contract(returns='list(tuple(int, int))')
def arcs_missing(self):
- """Returns a sorted list of the unexecuted arcs in the code."""
+ """Returns a sorted list of the un-executed arcs in the code."""
possible = self.arc_possibilities()
executed = self.arcs_executed()
missing = (
diff --git a/coverage/templite.py b/coverage/templite.py
index ab3cf1cf..29596d77 100644
--- a/coverage/templite.py
+++ b/coverage/templite.py
@@ -92,7 +92,7 @@ class Templite:
and joined. Be careful, this could join words together!
Any of these constructs can have a hyphen at the end (`-}}`, `-%}`, `-#}`),
- which will collapse the whitespace following the tag.
+ which will collapse the white space following the tag.
Construct a Templite with the template text, then use `render` against a
dictionary context to create a finished string::