Fix some typos in the docstrings
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by jgraeme · committed by Armin Ronacher · parent ff2786d · Browse files · 4 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
4 files+8 added−8 removed
- other:+8 added−8 removed
Provenance
- Commit
549af62- Tree
f0e3ed3- Author
jgraeme <jgraeme+git@gmail.com>- Committer
Armin Ronacher <armin.ronacher@active-4.com>- Parent
ff2786d
4 files changed+8 added−8 removed
modified:flask/app.py+2 added-2 removed
213 unmodified lines214 215 #: A dictionary of all view functions registered. The keys will216 #: be function names which are also used to generate URLs and217 #: the values are the function objects themselves.218- #: to register a view function, use the :meth:`route` decorator.218+ #: To register a view function, use the :meth:`route` decorator.219 self.view_functions = {}220 221 #: A dictionary of all registered error handlers. The key is222 #: be the error code as integer, the value the function that18 unmodified lines241 #: :meth:`before_request` decorator.242 self.after_request_funcs = {}243 244 #: A dictionary with list of functions that are called without argument245- #: to populate the template context. They key of the dictionary is the245+ #: to populate the template context. The key of the dictionary is the246 #: name of the module this function is active for, `None` for all247 #: requests. Each returns a dictionary that the template context is248 #: updated with. To register a function here, use the249 #: :meth:`context_processor` decorator.646 unmodified linesmodified:flask/helpers.py+1 added-1 removed
144 unmodified lines145 def url_for(endpoint, **values):146 """Generates a URL to the given endpoint with the method provided.147 The endpoint is relative to the active module if modules are in use.148 149- Here some examples:149+ Here are some examples:150 151 ==================== ======================= =============================152 Active Module Target Endpoint Target Function153 ==================== ======================= =============================310 unmodified linesmodified:flask/module.py+2 added-2 removed
52 unmodified lines53 modules can share the same import names, but in that case a `name` has54 to be provided to keep them apart. If different import names are used,55 the rightmost part of the import name is used as name.56 57- Here an example structure for a larger appliation::57+ Here's an example structure for a larger application::58 59 /myapplication60 /__init__.py61 /views10 unmodified lines72 app = Flask(__name__)73 app.register_module(admin, url_prefix='/admin')74 app.register_module(frontend)75 76- And here an example view module (`myapplication/views/admin.py`)::76+ And here's an example view module (`myapplication/views/admin.py`)::77 78 from flask import Module79 80 admin = Module(__name__)141 unmodified linesmodified:flask/wrappers.py+3 added-3 removed
15 unmodified lines16 from .globals import _request_ctx_stack17 18 19 class Request(RequestBase):20- """The request object used by default in flask. Remembers the20+ """The request object used by default in Flask. Remembers the21 matched endpoint and view arguments.22 23 It is what ends up as :class:`~flask.request`. If you want to replace24 the request object used you can subclass this and set51 unmodified lines76 return json.loads(self.data)77 78 79 class Response(ResponseBase):80- """The response object that is used by default in flask. Works like the81- response object from Werkzeug but is set to have a HTML mimetype by80+ """The response object that is used by default in Flask. Works like the81+ response object from Werkzeug but is set to have an HTML mimetype by82 default. Quite often you don't have to create this object yourself because83 :meth:`~flask.Flask.make_response` will take care of that for you.84 85 If you want to replace the response object used you can subclass this and3 unmodified lines