Browse Source

Merge pull request #1161 from pbu88/master

Fix warnings and code styling in the doc
pull/1162/head
Markus Unterwaditzer 10 years ago
parent
commit
96d7cc933a
  1. 5
      docs/api.rst
  2. 2
      flask/testing.py

5
docs/api.rst

@ -142,7 +142,7 @@ Response Objects
.. attribute:: headers .. attribute:: headers
A :class:`Headers` object representing the response headers. A :class:`~werkzeug.datastructures.Headers` object representing the response headers.
.. attribute:: status .. attribute:: status
@ -771,11 +771,10 @@ Command Line Interface
.. autofunction:: with_appcontext .. autofunction:: with_appcontext
.. autofunction:: pass_script_info .. autofunction:: pass_script_info
Marks a function so that an instance of :class:`ScriptInfo` is passed Marks a function so that an instance of :class:`ScriptInfo` is passed
as first argument to the click callback. as first argument to the click callback.
.. autofunction:: without_appcontext
.. autofunction:: script_info_option .. autofunction:: script_info_option
A special decorator that informs a click callback to be passed the A special decorator that informs a click callback to be passed the

2
flask/testing.py

@ -54,6 +54,8 @@ class FlaskClient(Client):
the test client uses. Once the with block is left the session is the test client uses. Once the with block is left the session is
stored back. stored back.
::
with client.session_transaction() as session: with client.session_transaction() as session:
session['value'] = 42 session['value'] = 42

Loading…
Cancel
Save