From 9a1feb24733c59d718844866cb35dcd31cb93586 Mon Sep 17 00:00:00 2001 From: Noah Morrison Date: Wed, 3 Oct 2018 09:45:53 -0400 Subject: [PATCH] Fix flake8 error --- chevron/renderer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- 2.47.3