summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-01-02 21:39:43 -0500
committerNed Batchelder <ned@nedbatchelder.com>2023-01-02 21:40:13 -0500
commit2090f79d4a0447f4d3744ea957fcebd951f0b843 (patch)
tree211e4823e09d09da54f9c63dcb833cdadbe5ca09
parent3770f54c710fd475f00a30482c4db2d8691632d8 (diff)
downloadpython-coveragepy-git-2090f79d4a0447f4d3744ea957fcebd951f0b843.tar.gz
style: better
-rw-r--r--coverage/files.py2
-rw-r--r--coverage/inorout.py2
2 files changed, 1 insertions, 3 deletions
diff --git a/coverage/files.py b/coverage/files.py
index 11dbdaa3..c4adffa4 100644
--- a/coverage/files.py
+++ b/coverage/files.py
@@ -195,8 +195,6 @@ def python_reported_file(filename: str) -> str:
return filename
-
-
def isabs_anywhere(filename: str) -> bool:
"""Is `filename` an absolute path on any OS?"""
return ntpath.isabs(filename) or posixpath.isabs(filename)
diff --git a/coverage/inorout.py b/coverage/inorout.py
index 860ed354..c43e43a4 100644
--- a/coverage/inorout.py
+++ b/coverage/inorout.py
@@ -201,8 +201,8 @@ class InOrOut:
self.source_pkgs.append(src)
self.source_pkgs_unmatched = self.source_pkgs[:]
- self.omit = prep_patterns(config.run_omit)
self.include = prep_patterns(config.run_include)
+ self.omit = prep_patterns(config.run_omit)
# The directories for files considered "installed with the interpreter".
self.pylib_paths: Set[str] = set()