blob: a73875743c5616c66918ac4f1421a7f8ed821bf4 [file] [log] [blame]
Thomas Waldmanna2cf1d32013-05-18 13:08:53 +02001# -*- coding: utf-8 -*-
2"""
3 jinja2._compat
4 ~~~~~~~~~~~~~~
5
Thomas Waldmann05ace8b2013-05-18 13:14:14 +02006 Some py2/py3 compatibility support that is not yet available in
7 "six" 1.3.0.
Thomas Waldmanna2cf1d32013-05-18 13:08:53 +02008 There are bugs open for "six" for all this stuff, so we can remove it
9 again from here as soon as we require a new enough "six" release.
10
11 :copyright: Copyright 2013 by the Jinja team, see AUTHORS.
12 :license: BSD, see LICENSE for details.
13"""
14
15# https://bitbucket.org/gutworth/six/issue/25/add-unichr
16try:
17 unichr = unichr # py2
18except NameError:
19 unichr = chr # py3