summaryrefslogtreecommitdiff
path: root/coverage
diff options
context:
space:
mode:
Diffstat (limited to 'coverage')
-rw-r--r--coverage/config.py4
-rw-r--r--coverage/control.py7
2 files changed, 2 insertions, 9 deletions
diff --git a/coverage/config.py b/coverage/config.py
index 6372f4c0..f20ef90d 100644
--- a/coverage/config.py
+++ b/coverage/config.py
@@ -467,10 +467,6 @@ def config_files_to_try(config_file):
(filename, is_our_file, was_file_specified)
"""
- # Some API users were specifying ".coveragerc" to mean the same as
- # True, so make it so.
- if config_file == ".coveragerc":
- config_file = True
specified_file = (config_file is not True)
if not specified_file:
# No file was specified. Check COVERAGE_RCFILE.
diff --git a/coverage/control.py b/coverage/control.py
index 53942242..d9272fc6 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -126,15 +126,12 @@ class Coverage(object):
`config_file` determines what configuration file to read:
- * If it is ".coveragerc", it is interpreted as if it were True,
- for backward compatibility.
-
* If it is a string, it is the name of the file to read. If the
file can't be read, it is an error.
* If it is True, then a few standard files names are tried
- (".coveragerc", "setup.cfg", "tox.ini"). It is not an error for
- these files to not be found.
+ (".coveragerc", "setup.cfg", "tox.ini", "pyproject.toml").
+ It is not an error for these files to not be found.
* If it is False, then no configuration file is read.