From 0b7ea3a678070a0ab28215c2cfff7fc4192be870 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 23 May 2020 09:17:45 -0400 Subject: [PATCH] Read the config file contents as bytes, it's just for debugging anyway. #990 --- coverage/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coverage/config.py b/coverage/config.py index d16c9d6e3..6d336d1f9 100644 --- a/coverage/config.py +++ b/coverage/config.py @@ -325,7 +325,7 @@ def from_file(self, filename, our_file): if used: self.config_file = os.path.abspath(filename) - with open(filename) as f: + with open(filename, "rb") as f: self._config_contents = f.read() return used