diff options
| author | Xavier Morel <xmo@odoo.com> | 2020-03-13 11:05:57 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2020-03-19 09:32:21 +0000 |
| commit | fe376d50d0c6da332a5ea2540c95583931dd2203 (patch) | |
| tree | a718fde95743556c759eac61c61b00a53308540a /odoo/modules | |
| parent | 41822a5022dea39a24018d1fa62644be399f7d5f (diff) | |
[FIX] core, base: leftover deprecation warnings
* from collections import <ABC> is deprecated, unclear why the
deprecation warning didn't appear before (possibly only appears in
3.7/3.8?) either way `collections.abc` should be 3.3+ so switch
everything to it.
* add some more ignores on third-party packages deprecation
warnings (meh)
* while at it, mitigate generation of non-breaking space on some
versions of Babel (in the french locale used by our tests anyway)
closes odoo/odoo#47581
Related: odoo/enterprise#9214
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'odoo/modules')
| -rw-r--r-- | odoo/modules/registry.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/odoo/modules/registry.py b/odoo/modules/registry.py index b42ebc988d5..8d443138502 100644 --- a/odoo/modules/registry.py +++ b/odoo/modules/registry.py @@ -4,7 +4,8 @@ """ Models registries. """ -from collections import Mapping, defaultdict, deque +from collections import defaultdict, deque +from collections.abc import Mapping from contextlib import closing, contextmanager from functools import partial from operator import attrgetter |
