From da1b282d3b39a6232e4cb798838389f7b16a0795 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 23 Dec 2022 15:47:15 -0500 Subject: fix: also look into .whl files for source --- coverage/files.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coverage/files.py') 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( -- cgit v1.2.1