From 549af6229039e7fed7bcb2079737e45c27af998e Mon Sep 17 00:00:00 2001 From: jgraeme Date: Tue, 3 Aug 2010 00:18:19 +0800 Subject: [PATCH] Fix some typos in the docstrings --- flask/app.py | 4 ++-- flask/helpers.py | 2 +- flask/module.py | 4 ++-- flask/wrappers.py | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/flask/app.py b/flask/app.py index faa5b168..f32e4dd8 100644 --- a/flask/app.py +++ b/flask/app.py @@ -215,7 +215,7 @@ class Flask(_PackageBoundObject): #: A dictionary of all view functions registered. The keys will #: be function names which are also used to generate URLs and #: the values are the function objects themselves. - #: to register a view function, use the :meth:`route` decorator. + #: To register a view function, use the :meth:`route` decorator. self.view_functions = {} #: A dictionary of all registered error handlers. The key is @@ -242,7 +242,7 @@ class Flask(_PackageBoundObject): self.after_request_funcs = {} #: A dictionary with list of functions that are called without argument - #: to populate the template context. They key of the dictionary is the + #: to populate the template context. The key of the dictionary is the #: name of the module this function is active for, `None` for all #: requests. Each returns a dictionary that the template context is #: updated with. To register a function here, use the diff --git a/flask/helpers.py b/flask/helpers.py index 53cee0d7..a6c18a33 100644 --- a/flask/helpers.py +++ b/flask/helpers.py @@ -146,7 +146,7 @@ def url_for(endpoint, **values): """Generates a URL to the given endpoint with the method provided. The endpoint is relative to the active module if modules are in use. - Here some examples: + Here are some examples: ==================== ======================= ============================= Active Module Target Endpoint Target Function diff --git a/flask/module.py b/flask/module.py index e6e1ee36..29350eb6 100644 --- a/flask/module.py +++ b/flask/module.py @@ -54,7 +54,7 @@ class Module(_PackageBoundObject): to be provided to keep them apart. If different import names are used, the rightmost part of the import name is used as name. - Here an example structure for a larger appliation:: + Here's an example structure for a larger application:: /myapplication /__init__.py @@ -73,7 +73,7 @@ class Module(_PackageBoundObject): app.register_module(admin, url_prefix='/admin') app.register_module(frontend) - And here an example view module (`myapplication/views/admin.py`):: + And here's an example view module (`myapplication/views/admin.py`):: from flask import Module diff --git a/flask/wrappers.py b/flask/wrappers.py index c578170c..4db1e782 100644 --- a/flask/wrappers.py +++ b/flask/wrappers.py @@ -17,7 +17,7 @@ from .globals import _request_ctx_stack class Request(RequestBase): - """The request object used by default in flask. Remembers the + """The request object used by default in Flask. Remembers the matched endpoint and view arguments. It is what ends up as :class:`~flask.request`. If you want to replace @@ -77,8 +77,8 @@ class Request(RequestBase): class Response(ResponseBase): - """The response object that is used by default in flask. Works like the - response object from Werkzeug but is set to have a HTML mimetype by + """The response object that is used by default in Flask. Works like the + response object from Werkzeug but is set to have an HTML mimetype by default. Quite often you don't have to create this object yourself because :meth:`~flask.Flask.make_response` will take care of that for you.