diff options
Diffstat (limited to 'jinja2/lexer.py')
-rw-r--r-- | jinja2/lexer.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/jinja2/lexer.py b/jinja2/lexer.py index c8dac214..d2ca32fc 100644 --- a/jinja2/lexer.py +++ b/jinja2/lexer.py @@ -574,15 +574,6 @@ class Lexer(object): except Exception as e: msg = str(e).split(':')[-1].strip() raise TemplateSyntaxError(msg, lineno, name, filename) - # if we can express it as bytestring (ascii only) - # we do that for support of semi broken APIs - # as datetime.datetime.strftime. On python 3 this - # call becomes a noop thanks to 2to3 - if PY2: - try: - value = value.encode('ascii') - except UnicodeError: - pass elif token == 'integer': value = int(value) elif token == 'float': |