OLD | NEW |
1 # -*- coding: utf-8 -*- | 1 # -*- coding: utf-8 -*- |
2 """ | 2 """ |
3 jinja2._compat | 3 jinja2._compat |
4 ~~~~~~~~~~~~~~ | 4 ~~~~~~~~~~~~~~ |
5 | 5 |
6 Some py2/py3 compatibility support based on a stripped down | 6 Some py2/py3 compatibility support based on a stripped down |
7 version of six so we don't have to depend on a specific version | 7 version of six so we don't have to depend on a specific version |
8 of it. | 8 of it. |
9 | 9 |
10 :copyright: Copyright 2013 by the Jinja team, see AUTHORS. | 10 :copyright: Copyright 2013 by the Jinja team, see AUTHORS. |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 from urllib import quote as url_quote | 141 from urllib import quote as url_quote |
142 | 142 |
143 | 143 |
144 try: | 144 try: |
145 from thread import allocate_lock | 145 from thread import allocate_lock |
146 except ImportError: | 146 except ImportError: |
147 try: | 147 try: |
148 from threading import Lock as allocate_lock | 148 from threading import Lock as allocate_lock |
149 except ImportError: | 149 except ImportError: |
150 from dummy_thread import allocate_lock | 150 from dummy_thread import allocate_lock |
OLD | NEW |