summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-11-17 08:10:41 -0500
committerNed Batchelder <ned@nedbatchelder.com>2019-11-17 08:10:41 -0500
commitd32835d1684a3d619aa04c8b10c387259700fa19 (patch)
tree48d050c1cf7a6e37a159705f94088f0be508924e /coverage/control.py
parente72fff05663c80268841a4fd77b40fbc2988e25d (diff)
downloadpython-coveragepy-git-d32835d1684a3d619aa04c8b10c387259700fa19.tar.gz
Clean-ups I noticed while doing something else
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/coverage/control.py b/coverage/control.py
index 5282eb59..0f306aa2 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -736,14 +736,14 @@ class Coverage(object):
if plugin_name:
plugin = self._plugins.get(plugin_name)
- if plugin:
- file_reporter = plugin.file_reporter(abs_morf)
- if file_reporter is None:
- raise CoverageException(
- "Plugin %r did not provide a file reporter for %r." % (
- plugin._coverage_plugin_name, morf
- )
- )
+ if plugin:
+ file_reporter = plugin.file_reporter(abs_morf)
+ if file_reporter is None:
+ raise CoverageException(
+ "Plugin %r did not provide a file reporter for %r." % (
+ plugin._coverage_plugin_name, morf
+ )
+ )
if file_reporter == "python":
file_reporter = PythonFileReporter(morf, self)