Skip to content
Myr

Fixed a typo and removed a useless backslash

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

authored by Armin Ronacher · committed by Armin Ronacher · parent 5661726 · Browse files · 2 files+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:jinja2/environment.py+1 added-1 removed
537 unmodified lines
538539 def compile_templates(self, target, extensions=None, filter_func=None,540 zip='deflated', log_function=None,541 ignore_errors=True, py_compile=False):542 """Compiles all the templates the loader can find, compiles them542 """Finds all the templates the loader can find, compiles them543 and stores them in `target`. If `zip` is `None`, instead of in a544 zipfile, the templates will be will be stored in a directory.545 By default a deflate zip algorithm is used, to switch to546 the stored algorithm, `zip` can be set to ``'stored'``.
572 unmodified lines
modified:jinja2/sandbox.py+1 added-1 removed
199 unmodified lines
200 considered safe unless the `unsafe_callable` attribute exists and is201 True. Override this method to alter the behavior, but this won't202 affect the `unsafe` decorator from this module.203 """204 return not (getattr(obj, 'unsafe_callable', False) or \204 return not (getattr(obj, 'unsafe_callable', False) or205 getattr(obj, 'alters_data', False))206207 def getitem(self, obj, argument):208 """Subscribe an object from sandboxed code."""
63 unmodified lines