Skip to content

Commit

Permalink
Read dependent files in UTF-8 mode (via getnikola/plugins#161)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Sep 29, 2016
1 parent 1e627f3 commit 8fd3765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/plugins/template/jinja.py
Expand Up @@ -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)

Expand Down

0 comments on commit 8fd3765

Please sign in to comment.