Skip to content
Permalink
Browse files

Read dependent files in UTF-8 mode (via getnikola/plugins#161)

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Sep 29, 2016
1 parent 1e627f3 commit 8fd3765a80a050d008c1dcb8a031b65ed15398b3
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/plugins/template/jinja.py
@@ -117,7 +117,7 @@ def get_string_deps(self, text):

def get_deps(self, filename):
"""Return paths to dependencies for the template loaded from filename."""
with open(filename) as fd:
with io.open(filename, 'r', encoding='utf-8') as fd:
text = fd.read()
return self.get_string_deps(text)

0 comments on commit 8fd3765

Please sign in to comment.
You can’t perform that action at this time.