From d41f1427d2cffb4ba4b3a4709b5c2b5a92f9512c Mon Sep 17 00:00:00 2001 From: Daniel Morrison Date: Sat, 20 Apr 2019 19:56:26 -0400 Subject: [PATCH] Mark unicode literal handling as Python2 --- chevron/renderer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chevron/renderer.py b/chevron/renderer.py index 80c0681..2affbb2 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): + if not isinstance(key, unicode_type): # python 2 key = unicode(key, 'utf-8') output += key.replace('\n', '\n' + padding) -- 2.47.3