From c268e74ef3ca99ebd5bcaab8e56da3cff49422f3 Mon Sep 17 00:00:00 2001 From: richierichrawr Date: Sat, 5 Apr 2014 16:33:51 -0400 Subject: [PATCH] Edit code comments for readability Changed a few things to make it more understandable --- jinja2/environment.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/jinja2/environment.py b/jinja2/environment.py index 45fabada..340d48eb 100644 --- a/jinja2/environment.py +++ b/jinja2/environment.py @@ -111,13 +111,13 @@ class Environment(object): Here the possible initialization parameters: `block_start_string` - The string marking the begin of a block. Defaults to ``'{%'``. + The string marking the beginning of a block. Defaults to ``'{%'``. `block_end_string` The string marking the end of a block. Defaults to ``'%}'``. `variable_start_string` - The string marking the begin of a print statement. + The string marking the beginning of a print statement. Defaults to ``'{{'``. `variable_end_string` @@ -125,7 +125,7 @@ class Environment(object): ``'}}'``. `comment_start_string` - The string marking the begin of a comment. Defaults to ``'{#'``. + The string marking the beginning of a comment. Defaults to ``'{#'``. `comment_end_string` The string marking the end of a comment. Defaults to ``'#}'``. @@ -180,7 +180,7 @@ class Environment(object): `autoescape` If set to true the XML/HTML autoescaping feature is enabled by - default. For more details about auto escaping see + default. For more details about autoescaping see :class:`~jinja2.utils.Markup`. As of Jinja 2.4 this can also be a callable that is passed the template name and has to return `True` or `False` depending on autoescape should be @@ -330,7 +330,7 @@ class Environment(object): loader=missing, cache_size=missing, auto_reload=missing, bytecode_cache=missing): """Create a new overlay environment that shares all the data with the - current environment except of cache and the overridden attributes. + current environment except for cache and the overridden attributes. Extensions cannot be removed for an overlayed environment. An overlayed environment automatically gets all the extensions of the environment it is linked to plus optional extra extensions. @@ -603,8 +603,8 @@ class Environment(object): ignore_errors=True, py_compile=False): """Finds all the templates the loader can find, compiles them and stores them in `target`. If `zip` is `None`, instead of in a - zipfile, the templates will be will be stored in a directory. - By default a deflate zip algorithm is used, to switch to + zipfile, the templates will be stored in a directory. + By default a deflate zip algorithm is used. To switch to the stored algorithm, `zip` can be set to ``'stored'``. `extensions` and `filter_func` are passed to :meth:`list_templates`. -- 2.47.2