summaryrefslogtreecommitdiff
path: root/coverage/inorout.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-05-09 17:07:57 -0400
committerNed Batchelder <ned@nedbatchelder.com>2023-05-09 17:07:57 -0400
commit1eeb84d3e9da3bf465c9fcd731834228b507950a (patch)
treed3e03d043eaee72ecf089278134560d8b724c53e /coverage/inorout.py
parent342a7b69d5a47f454eb5f2fef78857e8bd83fdfc (diff)
downloadpython-coveragepy-git-1eeb84d3e9da3bf465c9fcd731834228b507950a.tar.gz
style: some clean-ups
Diffstat (limited to 'coverage/inorout.py')
-rw-r--r--coverage/inorout.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/inorout.py b/coverage/inorout.py
index ff46bac0..d2dbdcdf 100644
--- a/coverage/inorout.py
+++ b/coverage/inorout.py
@@ -528,7 +528,7 @@ class InOrOut:
Yields pairs: file path, and responsible plug-in name.
"""
for pkg in self.source_pkgs:
- if (not pkg in sys.modules or
+ if (pkg not in sys.modules or
not module_has_file(sys.modules[pkg])):
continue
pkg_file = source_for_file(cast(str, sys.modules[pkg].__file__))