Browse Source

Small cleanups

pull/112/head
Armin Ronacher 15 years ago
parent
commit
2b00ec4017
  1. 4
      flask/app.py
  2. 4
      flask/helpers.py

4
flask/app.py

@ -363,9 +363,9 @@ class Flask(_PackageBoundObject):
.. admonition:: Keep in Mind
Flask will supress any server error with a generic error page
Flask will suppress any server error with a generic error page
unless it is in debug mode. As such to enable just the
interactive debugger without the code reloading, you ahve to
interactive debugger without the code reloading, you have to
invoke :meth:`run` with ``debug=True`` and ``use_reloader=False``.
Setting ``use_debugger`` to `True` without being in debug mode
won't catch any exceptions because there won't be any to

4
flask/helpers.py

@ -214,8 +214,8 @@ def send_file(filename_or_fp, mimetype=None, as_attachment=False,
.. versionadded:: 0.2
.. versionadded:: 0.5
The `add_etags`, `cache_timeout` and `conditional` parameters were added.
The default behaviour is now to attach etags.
The `add_etags`, `cache_timeout` and `conditional` parameters were
added. The default behaviour is now to attach etags.
:param filename_or_fp: the filename of the file to send. This is
relative to the :attr:`~Flask.root_path` if a

Loading…
Cancel
Save