Skip to content

Commit

Permalink
Open env files in utf-8 mode explicitly (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
nat-n authored Oct 25, 2023
1 parent 69a6e13 commit c52d1c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
python-version: ['3.8', '3.9', '3.10', '3.11']
exclude: # TODO: remove this when pip is fixed
- os: Windows
python-version: '3.11'
python-version: '3.8'

runs-on: ${{ matrix.os }}-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion poethepoet/env/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get(self, envfile_path_str: str) -> Dict[str, str]:
envfile_path = self._project_dir.joinpath(Path(envfile_path_str).expanduser())
if envfile_path.is_file():
try:
with envfile_path.open() as envfile:
with envfile_path.open(encoding="utf-8") as envfile:
result = parse_env_file(envfile.readlines())
except ValueError as error:
message = error.args[0]
Expand Down

0 comments on commit c52d1c3

Please sign in to comment.