Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit 89fa1f5

Browse files
Merge pull request #242 from codecov/joseph/file-fixes-encoding
Change encoding of open in _get_file_fixes to utf8
2 parents 7452c92 + b1bfc55 commit 89fa1f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codecov_cli/services/upload/upload_collector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def _get_file_fixes(
108108
fixed_lines_with_reason = set()
109109
eof = None
110110

111-
with open(filename, "r") as f:
111+
with open(filename, "r", encoding="utf8") as f:
112112
for lineno, line_content in enumerate(f):
113113
if any(
114114
pattern.match(line_content)

0 commit comments

Comments
 (0)