From 95632c4dae693127340221f7eed11f68953db4c3 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 22 Nov 2009 18:35:18 +0100 Subject: [PATCH] Fix typos and one extra import. --HG-- branch : trunk --- jinja2/environment.py | 4 ++-- jinja2/utils.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jinja2/environment.py b/jinja2/environment.py index 75f58d6..a08aad2 100644 --- a/jinja2/environment.py +++ b/jinja2/environment.py @@ -288,8 +288,8 @@ 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 overriden attributes. - Extensions cannot be removed for a overlayed environment. A overlayed + current environment except of 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. diff --git a/jinja2/utils.py b/jinja2/utils.py index 96167c0..be8cd6d 100644 --- a/jinja2/utils.py +++ b/jinja2/utils.py @@ -268,7 +268,7 @@ def urlize(text, trim_url_limit=None, nofollow=False): def generate_lorem_ipsum(n=5, html=True, min=20, max=100): """Generate some lorem impsum for the template.""" from jinja2.constants import LOREM_IPSUM_WORDS - from random import choice, random, randrange + from random import choice, randrange words = LOREM_IPSUM_WORDS.split() result = [] -- 2.26.2