diff --git a/coverage/tomlconfig.py b/coverage/tomlconfig.py index 1784f3f39..4fd73ba1f 100644 --- a/coverage/tomlconfig.py +++ b/coverage/tomlconfig.py @@ -50,7 +50,7 @@ def read(self, filenames: Iterable[str]) -> list[str]: filename = os.fspath(filenames) try: - with open(filename, encoding='utf-8') as fp: + with open(filename, encoding='utf-8', newline='') as fp: toml_text = fp.read() except OSError: return []