Small cleanups

This commit is contained in:
Armin Ronacher 2010-07-04 14:19:17 +02:00
parent f4d8f85a74
commit 2b00ec4017
2 changed files with 4 additions and 4 deletions

View file

@ -363,9 +363,9 @@ class Flask(_PackageBoundObject):
.. admonition:: Keep in Mind .. 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 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``. invoke :meth:`run` with ``debug=True`` and ``use_reloader=False``.
Setting ``use_debugger`` to `True` without being in debug mode Setting ``use_debugger`` to `True` without being in debug mode
won't catch any exceptions because there won't be any to won't catch any exceptions because there won't be any to

View file

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