Skip to content

Set default encoding to UTF-8 for load_dotenv#3932

Merged
davidism merged 1 commit intopallets:masterfrom
greyli:set-encoding
Mar 10, 2021
Merged

Set default encoding to UTF-8 for load_dotenv#3932
davidism merged 1 commit intopallets:masterfrom
greyli:set-encoding

Conversation

@greyli
Copy link
Copy Markdown
Contributor

@greyli greyli commented Mar 10, 2021

This PR will set encoding to UTF-8 when calling dotenv.load_dotenv().

fixes #3931

Checklist:

  • Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
  • Add or update relevant docs, in the docs folder and in code.
  • Add an entry in CHANGES.rst summarizing the change and linking to the issue.
  • Add .. versionchanged:: entries in any relevant code docs.
  • Run pre-commit hooks and fix any issues.
  • Run pytest and tox, no tests failed.

@davidism davidism merged commit 3316604 into pallets:master Mar 10, 2021
@davidism davidism added this to the 2.0.0 milestone Mar 10, 2021
@greyli
Copy link
Copy Markdown
Contributor Author

greyli commented Mar 10, 2021

@davidism Is it needed to update the changelog and the cli docs for this change? (I was just about to push the commit...)

@greyli greyli deleted the set-encoding branch March 10, 2021 14:47
@davidism
Copy link
Copy Markdown
Member

@greyli oops, sorry about that, I didn't think they were particularly necessary here, but if you've already got it we might as well add it in.

@greyli
Copy link
Copy Markdown
Contributor Author

greyli commented Mar 10, 2021

No worries, I also think it's not quite necessary, just tried to fill the checkboxs :p

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default encoding of .env and .flaskenv

2 participants