]> git.ipfire.org Git - thirdparty/jinja.git/commit
Import abstract base classes from collections.abc 867/head
authorFlorian Bruhin <git@the-compiler.org>
Wed, 27 Jun 2018 13:30:54 +0000 (15:30 +0200)
committerDavid Lord <davidism@gmail.com>
Tue, 7 Aug 2018 17:25:51 +0000 (10:25 -0700)
commit31bf9b7e71c3fee3b7866ffdc0f70f4525a490d9
treeea29e97ff591f183346b58db2e37e0f99ac6968a
parent0ece61041fc79ad573b07ada39174a82c6e9428c
Import abstract base classes from collections.abc

In Python 3.7, importing ABCs directly from the `collections` module shows a
warning (and in Python 3.8 it will stop working) - see
https://github.com/python/cpython/commit/c66f9f8d3909f588c251957d499599a1680e2320

This fixes various DeprecationWarnings such as those:

```
.../jinja2/utils.py:485: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import MutableMapping

.../jinja2/runtime.py:318: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import Mapping
```
docs/jinjaext.py
jinja2/_compat.py
jinja2/runtime.py
jinja2/sandbox.py
jinja2/tests.py
jinja2/utils.py