diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-11-19 16:28:28 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-11-19 16:28:28 -0500 |
commit | e1775b405a4ed1b80c694c727cea849bff217296 (patch) | |
tree | 6d123e74a2d820412e995c29e4956c3d10afd650 /coverage/control.py | |
parent | a27b555165ed6a2167983fb50089113a311129ff (diff) | |
download | python-coveragepy-e1775b405a4ed1b80c694c727cea849bff217296.tar.gz |
Clean up line wraps and leftover prints
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/coverage/control.py b/coverage/control.py index e658ef1..e0aa998 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -148,16 +148,11 @@ class Coverage(object): for fname, prefix in [(config_file, ""), ("setup.cfg", "coverage:"), ("tox.ini", "coverage:")]: - config_read = self.config.from_file(fname, - section_prefix=prefix) - print('config read?') - print(config_read) + config_read = self.config.from_file(fname, section_prefix=prefix) is_config_file = fname == config_file if not config_read and is_config_file and specified_file: - raise CoverageException( - "Couldn't read '%s' as a config file" % fname - ) + raise CoverageException("Couldn't read '%s' as a config file" % fname) if config_read: break |