Skip to content
Myr

In Flask.run, now when the host/port argument is None, it will use its default value.

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

authored by Joe Esposito · committed by Ron DuPlain · parent c93ea55 · Browse files · 1 file+4 added−0 removed
This commit

State

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

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:flask/app.py+4 added
693 unmodified lines
694 :func:`werkzeug.serving.run_simple` for more695 information.696 """697 from werkzeug.serving import run_simple698 if host is None:699 host = '127.0.0.1'700 if port is None:701 port = 5000702 if debug is not None:703 self.debug = bool(debug)704 options.setdefault('use_reloader', self.debug)705 options.setdefault('use_debugger', self.debug)
827 unmodified lines