Skip to content

Commit 0b7ea3a

Browse files
committed
Read the config file contents as bytes, it's just for debugging anyway. #990
1 parent f0d3921 commit 0b7ea3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coverage/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def from_file(self, filename, our_file):
325325

326326
if used:
327327
self.config_file = os.path.abspath(filename)
328-
with open(filename) as f:
328+
with open(filename, "rb") as f:
329329
self._config_contents = f.read()
330330

331331
return used

0 commit comments

Comments
 (0)