From 2bc1ef7c862398525070a308bac1ac5e407f6cc1 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Mon, 8 Dec 2008 15:21:26 +0100 Subject: [PATCH] Fixed a typo --HG-- branch : trunk --- docs/jinjaext.py | 2 +- jinja2/environment.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/jinjaext.py b/docs/jinjaext.py index 7dc9baf..65f9694 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 4a9c9d1..9d43339 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) -- 2.26.2