Skip to content

Commit 3e7ee8d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e1906f7 commit 3e7ee8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tox/config/source/ini.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, path: Path, content: str | None = None) -> None:
3232
if content is None:
3333
if not path.exists():
3434
raise ValueError
35-
content = path.read_text()
35+
content = path.read_text(encoding="utf-8")
3636
self._parser.read_string(content, str(path))
3737
self._section_mapping: defaultdict[str, list[str]] = defaultdict(list)
3838

tests/execute/local_subprocess/bad_process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def _p(m: str) -> None:
3232
try:
3333
start_file = Path(sys.argv[1])
3434
_p(f"create {start_file}")
35-
start_file.write_text("")
35+
start_file.write_text("", encoding="utf-8")
3636
_p(f"created {start_file}")
3737
while True:
3838
time.sleep(0.01)

0 commit comments

Comments
 (0)