From: Daniel Morrison Date: Sat, 20 Apr 2019 23:56:26 +0000 (-0400) Subject: Mark unicode literal handling as Python2 X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=d41f1427d2cffb4ba4b3a4709b5c2b5a92f9512c;p=chevron.git Mark unicode literal handling as Python2 --- 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)