]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Fix typos and one extra import.
authorGeorg Brandl <georg@python.org>
Sun, 22 Nov 2009 17:35:18 +0000 (18:35 +0100)
committerGeorg Brandl <georg@python.org>
Sun, 22 Nov 2009 17:35:18 +0000 (18:35 +0100)
--HG--
branch : trunk

jinja2/environment.py
jinja2/utils.py

index 75f58d6f6095963462d4835d931f313fc2467db5..a08aad20fe7d47aff27eb9c8afa1954816178d49 100644 (file)
@@ -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.
 
index 96167c0745a5d20c3b042e7c18d4709ea79a1b1c..be8cd6d1817281dabf079b3efaaa0239626cea2c 100644 (file)
@@ -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 = []