Skip to content
Myr

Merge pull request #3285 from ThiefMaster/dotenv-msg-stderr

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Move dotenv warning to stderr

authored by David Lord · committed by GitHub · parents cf4923b, 975f979 · Browse files · 2 files+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−1 removed

  • other:+2 added−1 removed

2 files+2 added−1 removed

modified:flask/cli.py+1 added-1 removed
598 unmodified lines
599 if path or os.path.exists('.env') or os.path.exists('.flaskenv'):600 click.secho(601 ' * Tip: There are .env files present.'602 ' Do "pip install python-dotenv" to use them.',603 fg='yellow')603 fg='yellow', err=True)604 return605606 if path is not None:607 return dotenv.load_dotenv(path)
303 unmodified lines
modified:CHANGES.rst+1 added
9 unmodified lines
10 requires upgrading to Werkzeug 0.15.5. :issue:`3249`11- ``send_file`` url quotes the ":" and "/" characters for more12 compatible UTF-8 filename support in some browsers. :issue:`3074`13- Fixes for PEP451 import loaders and pytest 5.x. :issue:`3275`14- Show message about dotenv on stderr instead of stdout. :issue:`3285`151617Version 1.0.318-------------
881 unmodified lines