]> Devi Nivas Git - chevron.git/commitdiff
Merge branch 'master' of https://github.com/jonioni/chevron into jonioni-master
authorNoah Morrison <noah@morrison.ph>
Wed, 3 Oct 2018 13:43:32 +0000 (09:43 -0400)
committerNoah Morrison <noah@morrison.ph>
Wed, 3 Oct 2018 13:43:32 +0000 (09:43 -0400)
1  2 
chevron/renderer.py

index e1ae55bdd74702d64b9fd1f2995f59bfecd78113,c6b19e90b9a81b880fb34c6653d7343d87e3ca19..9716ecb682e9831b2c567567afc1e625e5439087
@@@ -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: