summaryrefslogtreecommitdiff
path: root/coverage/files.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-12-23 15:47:15 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-12-23 16:06:46 -0500
commitda1b282d3b39a6232e4cb798838389f7b16a0795 (patch)
tree684d42ad41ea4c3c2f0879c51804078eaadcece1 /coverage/files.py
parentd327a70d9b81833c0ce22f2046b1d93892c1e72d (diff)
downloadpython-coveragepy-git-da1b282d3b39a6232e4cb798838389f7b16a0795.tar.gz
fix: also look into .whl files for source
Diffstat (limited to 'coverage/files.py')
-rw-r--r--coverage/files.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/files.py b/coverage/files.py
index 05c98eec..33964960 100644
--- a/coverage/files.py
+++ b/coverage/files.py
@@ -160,7 +160,7 @@ def zip_location(filename):
name is in the zipfile.
"""
- for ext in ['.zip', '.egg', '.pex']:
+ for ext in ['.zip', '.whl', '.egg', '.pex']:
zipbase, extension, inner = filename.partition(ext + sep(filename))
if extension:
zipfile = zipbase + ext
@@ -473,7 +473,7 @@ class PathAliases:
if not exists(new):
self.debugfn(
f"Rule {original_pattern!r} changed {path!r} to {new!r} " +
- f"which doesn't exist, continuing"
+ "which doesn't exist, continuing"
)
continue
self.debugfn(