From a270910983c662fd0801e3bdca0ce616dfd9a737 Mon Sep 17 00:00:00 2001 From: Daniel Morrison Date: Sat, 20 Apr 2019 20:18:02 -0400 Subject: [PATCH] Flake8 Fixes --- chevron/renderer.py | 2 +- test_spec.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/chevron/renderer.py b/chevron/renderer.py index 2affbb2..99415da 100644 --- a/chevron/renderer.py +++ b/chevron/renderer.py @@ -211,7 +211,7 @@ def render(template='', data={}, partials_path='.', partials_ext='mustache', # If we're a literal tag elif tag == 'literal': # Add padding to the key and add it to the output - if not isinstance(key, unicode_type): # python 2 + if not isinstance(key, unicode_type): # python 2 key = unicode(key, 'utf-8') output += key.replace('\n', '\n' + padding) diff --git a/test_spec.py b/test_spec.py index 7a8bc04..56bdea6 100755 --- a/test_spec.py +++ b/test_spec.py @@ -382,14 +382,13 @@ class ExpandedCoverage(unittest.TestCase): return item args = { - 'data': CustomData({ + 'data': CustomData({ 'truthy': True, 'falsy': False, }), 'template': '{{ truthy }} {{ falsy }}', } - result = chevron.render(**args) expected = 'true false' -- 2.47.3