]> Devi Nivas Git - chevron.git/commitdiff
Flake8 Fixes
authorDaniel Morrison <dan@morrison.ph>
Sun, 21 Apr 2019 00:18:02 +0000 (20:18 -0400)
committerDaniel Morrison <dan@morrison.ph>
Sun, 21 Apr 2019 00:18:02 +0000 (20:18 -0400)
chevron/renderer.py
test_spec.py

index 2affbb2ed080807725c620830b7d3c48c5260660..99415da97fbea56901e1fc7900d16b77c2e24680 100644 (file)
@@ -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)
 
index 7a8bc04a157dfd84b1d77e6f657d666174622066..56bdea6bc4b8a5abb6b38cd41098cf2ef54c5576 100755 (executable)
@@ -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'