Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix typos and one extra import.

--HG--
branch : trunk
  • Loading branch information...
commit 95632c4dae693127340221f7eed11f68953db4c3 1 parent 2f0d659
Georg Brandl birkenfeld authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 jinja2/environment.py
  2. +1 −1  jinja2/utils.py
4 jinja2/environment.py
View
@@ -288,8 +288,8 @@ def overlay(self, block_start_string=missing, block_end_string=missing,
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.
2  jinja2/utils.py
View
@@ -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 = []
Please sign in to comment.
Something went wrong with that request. Please try again.