diff options
-rw-r--r-- | src/jinja2/loaders.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jinja2/loaders.py b/src/jinja2/loaders.py index 6e546c00..09f678d7 100644 --- a/src/jinja2/loaders.py +++ b/src/jinja2/loaders.py @@ -55,8 +55,8 @@ class BaseLoader: if not exists(path): raise TemplateNotFound(template) mtime = getmtime(path) - with file(path) as f: - source = f.read().decode('utf-8') + with open(path) as f: + source = f.read() return source, path, lambda: mtime == getmtime(path) """ |