From ad09cbca252e76c0bd3a996b1ec38a8e01ce2084 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Fri, 30 Jul 2021 22:43:23 +0100 Subject: [PATCH] open .toml file with readline='' --- coverage/tomlconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 []