]> Devi Nivas Git - chevron.git/commitdiff
pep8
authornoah morrison <noah@morrison.ph>
Tue, 18 Nov 2014 17:32:31 +0000 (12:32 -0500)
committernoah morrison <noah@morrison.ph>
Tue, 18 Nov 2014 17:32:31 +0000 (12:32 -0500)
chevron.py
test_spec.py

index 3d97b9951a76632970b50a4fb39a08153da15a50..535edad70a83d955db606e2eae85ea31457a2d09 100755 (executable)
@@ -265,7 +265,7 @@ def render(template='', data={}, partials_path='.', partials_ext='mustache',
 
     output = unicode('', 'utf-8')
 
-    if scopes == None:
+    if scopes is None:
         scopes = [data]
 
     # Run through the tokens
index 78f10d0c102e456931a9f76c2760ca592c22a80b..69f9517cb4c417346651fb23eb98b2522b7f1dc3 100755 (executable)
@@ -108,7 +108,7 @@ class ExpandedCoverage(unittest.TestCase):
 
     def test_main(self):
         result = chevron.main('tests/data.json', 'tests/test.mustache',
-                            partials_path='tests')
+                              partials_path='tests')
 
         with open('tests/test.rendered', 'r') as f:
             expected = f.read()