]> Devi Nivas Git - chevron.git/commitdiff
Mark unicode literal handling as Python2
authorDaniel Morrison <dan@morrison.ph>
Sat, 20 Apr 2019 23:56:26 +0000 (19:56 -0400)
committerDaniel Morrison <dan@morrison.ph>
Sat, 20 Apr 2019 23:56:26 +0000 (19:56 -0400)
chevron/renderer.py

index 80c06817231472dc9b5a8780782607746d8982c2..2affbb2ed080807725c620830b7d3c48c5260660 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):
+            if not isinstance(key, unicode_type): # python 2
                 key = unicode(key, 'utf-8')
             output += key.replace('\n', '\n' + padding)