Skip to content
Myr

Fix warnings and code styling in the doc

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

There was a blank line missing that was generating a warning when building the doc. Also, a removed function from cli.py was left in api.rst (without_appcontext specifically) so this was also generating warnings. Also corrects the format for a code block and adds a link to Werkzeug's Headers class.

authored by Paulo Bu · committed by Paulo Bu · parent 7c16054 · Browse files · 2 files+4 added−3 removed
This commit

State

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

Diff stats

2 files+4 added−3 removed

  • other:+4 added−3 removed

2 files+4 added−3 removed

modified:docs/api.rst+2 added-3 removed
140 unmodified lines
141 :members: set_cookie, data, mimetype142143 .. attribute:: headers144145 A :class:`Headers` object representing the response headers.145 A :class:`~werkzeug.datastructures.Headers` object representing the response headers.146147 .. attribute:: status148149 A string with a response status.
620 unmodified lines
770771.. autofunction:: with_appcontext772773.. autofunction:: pass_script_info774775 Marks a function so that an instance of :class:`ScriptInfo` is passed776 as first argument to the click callback.777777.. autofunction:: without_appcontext778778.. autofunction:: script_info_option779780 A special decorator that informs a click callback to be passed the781 script info object as first argument. This is normally not useful
6 unmodified lines
modified:flask/testing.py+2 added
52 unmodified lines
53 session transaction. This can be used to modify the session that54 the test client uses. Once the with block is left the session is55 stored back.5657 ::5859 with client.session_transaction() as session:60 session['value'] = 426162 Internally this is implemented by going through a temporary test
66 unmodified lines