| 1 | |
| 2 | |
| 3 | @@ -315,7 +315,7 @@ class Context(with_metaclass(ContextMeta
|
| 4 |
|
| 5 | # register the context as mapping if possible
|
| 6 | try:
|
| 7 | - from collections import Mapping
|
| 8 | + from collections.abc import Mapping
|
| 9 | Mapping.register(Context)
|
| 10 | except ImportError:
|
| 11 | pass
|
| 12 | |
| 13 | |
| 14 | @@ -14,7 +14,7 @@
|
| 15 | """
|
| 16 | import types
|
| 17 | import operator
|
| 18 | -from collections import Mapping
|
| 19 | +from collections.abc import Mapping
|
| 20 | from jinja2.environment import Environment
|
| 21 | from jinja2.exceptions import SecurityError
|
| 22 | from jinja2._compat import string_types, PY2
|