From: Noah Morrison Date: Wed, 3 Oct 2018 13:45:53 +0000 (-0400) Subject: Fix flake8 error X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=9a1feb24733c59d718844866cb35dcd31cb93586;p=chevron.git Fix flake8 error --- diff --git a/chevron/renderer.py b/chevron/renderer.py index 9716ecb..a1dca72 100644 --- a/chevron/renderer.py +++ b/chevron/renderer.py @@ -92,7 +92,8 @@ def _get_partial(name, partials_dict, partials_path, partials_ext): # Nope... try: # Maybe it's in the file system - path = partials_path + '/' + name + ('.' + partials_ext if partials_ext else '') + path_ext = ('.' + partials_ext if partials_ext else '') + path = partials_path + '/' + name + path_ext with io.open(path, 'r', encoding='utf-8') as partial: return partial.read()