From: Noah Morrison Date: Wed, 3 Oct 2018 13:43:32 +0000 (-0400) Subject: Merge branch 'master' of https://github.com/jonioni/chevron into jonioni-master X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=c88b83ffb81873e4b8efd512c6aaf90744a9ecb3;p=chevron.git Merge branch 'master' of https://github.com/jonioni/chevron into jonioni-master --- c88b83ffb81873e4b8efd512c6aaf90744a9ecb3 diff --cc chevron/renderer.py index e1ae55b,c6b19e9..9716ecb --- a/chevron/renderer.py +++ b/chevron/renderer.py @@@ -92,8 -90,8 +92,8 @@@ def _get_partial(name, partials_dict, p # Nope... try: # Maybe it's in the file system - path = partials_path + '/' + name + '.' + partials_ext + path = partials_path + '/' + name + ('.' + partials_ext if partials_ext else '') - with open(path, 'r') as partial: + with io.open(path, 'r', encoding='utf-8') as partial: return partial.read() except IOError: