fix typos
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by David Lord · parent 30d1c5d · Browse files · 5 files·+8 added−8 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+8 added−8 removed
- other:+8 added−8 removed
Provenance
- Commit
81798b4- Tree
8c670b4- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
30d1c5d
5 files changed+8 added−8 removed
modified:docs/blueprints.rst+2 added-2 removed
292 unmodified lines293 @simple_page.errorhandler(404)294 def page_not_found(e):295 return render_template('pages/404.html')296 297-Most errorhandlers will simply work as expected; however, there is a caveat298-concerning handlers for 404 and 405 exceptions. These errorhandlers are only297+Most error handlers will simply work as expected; however, there is a caveat298+concerning handlers for 404 and 405 exceptions. These error handlers are only299 invoked from an appropriate ``raise`` statement or a call to ``abort`` in another300 of the blueprint's view functions; they are not invoked by, e.g., an invalid URL301 access. This is because the blueprint does not "own" a certain URL space, so302 the application instance has no way of knowing which blueprint error handler it13 unmodified linesmodified:docs/errorhandling.rst+1 added-1 removed
9 unmodified lines10 - the client terminated the request early and the application was still11 reading from the incoming data12 - the database server was overloaded and could not handle the query13 - a filesystem is full14-- a harddrive crashed14+- a hard drive crashed15 - a backend server overloaded16 - a programming error in a library you are using17 - network connection of the server to another system failed18 505 unmodified linesmodified:src/flask/sansio/README.md+1 added-1 removed
1123456# Sansio# Sans-IO
This folder contains code that can be used by alternative Flaskimplementations, for example Quart. The code therefore cannot do anyIO, nor be part of a likely IO path. Finally this code cannot use theFlask globals.modified:src/flask/app.py+2 added-2 removed
1141 unmodified lines1142 ``bytes``1143 A response object is created with the bytes as the body.1144 1145 ``dict``1146- A dictionary that will be jsonify'd before being returned.1146+ Converted to a JSON response.1147 1148 ``list``1149- A list that will be jsonify'd before being returned.1149+ Converted to a JSON response.1150 1151 ``generator`` or ``iterator``1152 A generator that returns ``str`` or ``bytes`` to be1153 streamed as the response.383 unmodified linesmodified:CHANGES.rst+2 added-2 removed
1569 unmodified lines1570 a little longer. This can also be used to trigger custom requests1571 that do not pop the request stack for testing.1572 - Because the Python standard library caches loggers, the name of the1573 logger is configurable now to better support unittests.1574-- Added ``TESTING`` switch that can activate unittesting helpers.1574+- Added ``TESTING`` switch that can activate unit testing helpers.1575 - The logger switches to ``DEBUG`` mode now if debug is enabled.1576 1577 1578 Version 0.3.127 unmodified lines1606 1607 Version 0.21608 -----------1609 1610-Released 2010-05-12, codename J?germeister1610+Released 2010-05-12, codename Jägermeister1611 1612 - Various bugfixes1613 - Integrated JSON support1614 - Added ``get_template_attribute`` helper function.19 unmodified lines