diff --git a/coverage/tomlconfig.py b/coverage/tomlconfig.py index 203192c93..392f390d3 100644 --- a/coverage/tomlconfig.py +++ b/coverage/tomlconfig.py @@ -40,7 +40,7 @@ def read(self, filenames): 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 []