From: Armin Ronacher Date: Mon, 8 Dec 2008 14:21:26 +0000 (+0100) Subject: Fixed a typo X-Git-Tag: 2.1.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bc1ef7c862398525070a308bac1ac5e407f6cc1;p=thirdparty%2Fjinja.git Fixed a typo --HG-- branch : trunk --- diff --git a/docs/jinjaext.py b/docs/jinjaext.py index 7dc9baf7..65f9694e 100644 --- a/docs/jinjaext.py +++ b/docs/jinjaext.py @@ -146,7 +146,7 @@ def jinja_changelog(dirname, arguments, options, content, lineno, 'CHANGES')) try: for line in islice(changelog, 3, None): - doc.append(line.rstrip(), '') + doc.append(line.rstrip().decode('utf-8'), '') finally: changelog.close() return parse_rst(state, content_offset, doc) diff --git a/jinja2/environment.py b/jinja2/environment.py index 4a9c9d10..9d43339a 100644 --- a/jinja2/environment.py +++ b/jinja2/environment.py @@ -53,7 +53,7 @@ def create_cache(size): def copy_cache(cache): """Create an empty copy of the given cache.""" if cache is None: - return Noe + return None elif type(cache) is dict: return {} return LRUCache(cache.capacity)