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

This commit is contained in:
Joe Esposito 2011-10-24 17:46:35 -04:00 committed by Ron DuPlain
parent c93ea5551c
commit 46e7bc7083

View file

@ -695,6 +695,10 @@ class Flask(_PackageBoundObject):
information.
"""
from werkzeug.serving import run_simple
if host is None:
host = '127.0.0.1'
if port is None:
port = 5000
if debug is not None:
self.debug = bool(debug)
options.setdefault('use_reloader', self.debug)