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