Skip to content
Myr

Fix typos and one extra import.

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

--HG-- branch : trunk

authored by Georg Brandl · committed by Georg Brandl · parent 2f0d659 · Browse files · 2 files+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:jinja2/environment.py+2 added-2 removed
286 unmodified lines
287 undefined=missing, finalize=missing, autoescape=missing,288 loader=missing, cache_size=missing, auto_reload=missing,289 bytecode_cache=missing):290 """Create a new overlay environment that shares all the data with the291 current environment except of cache and the overriden attributes.292 Extensions cannot be removed for a overlayed environment. A overlayed291 current environment except of cache and the overridden attributes.292 Extensions cannot be removed for an overlayed environment. An overlayed293 environment automatically gets all the extensions of the environment it294 is linked to plus optional extra extensions.295296 Creating overlays should happen after the initial environment was set
593 unmodified lines
modified:jinja2/utils.py+1 added-1 removed
266 unmodified lines
267268def generate_lorem_ipsum(n=5, html=True, min=20, max=100):269 """Generate some lorem impsum for the template."""270 from jinja2.constants import LOREM_IPSUM_WORDS271 from random import choice, random, randrange271 from random import choice, randrange272 words = LOREM_IPSUM_WORDS.split()273 result = []274275 for _ in xrange(n):
509 unmodified lines