]> Devi Nivas Git - chevron.git/commitdiff
Fix flake8-reported style issues
authorAkos Kiss <akiss@inf.u-szeged.hu>
Mon, 1 Oct 2018 16:58:58 +0000 (18:58 +0200)
committerAkos Kiss <akiss@inf.u-szeged.hu>
Mon, 1 Oct 2018 16:58:58 +0000 (18:58 +0200)
chevron/renderer.py
setup.py

index 98db93d4cac427a6fb2f41234a41bd555be4f3f6..3944f9971c9843916311d186f627d684bba765df 100644 (file)
@@ -98,11 +98,13 @@ def _get_partial(name, partials_dict, partials_path, partials_ext):
             # Alright I give up on you
             return ''
 
+
 #
 # The main rendering function
 #
 g_token_cache = {}
 
+
 def render(template='', data={}, partials_path='.', partials_ext='mustache',
            partials_dict={}, padding=0, def_ldel='{{', def_rdel='}}',
            scopes=None):
@@ -282,7 +284,8 @@ def render(template='', data={}, partials_path='.', partials_ext='mustache',
                         tags_with_same_key += 1
                     if tag == ('end', key):
                         tags_with_same_key -= 1
-                        if tags_with_same_key < 0: break
+                        if tags_with_same_key < 0:
+                            break
                     tags.append(tag)
 
                 # For every item in the scope
index 6135cce2b8d61571b0675f8a36bf30b461f1d894..2668ec7ffe9bf7c8da27c48b55e9106b4d33415f 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,6 @@ except (ImportError, RuntimeError):
     readme = ''
 
 
-
 setup(name='chevron',
       version=chevron.metadata.version,
       license='MIT',