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/api.py | |
| 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/api.py')
| -rw-r--r-- | odoo/api.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/odoo/api.py b/odoo/api.py index f4dbeb8b97f..42405b3d5f0 100644 --- a/odoo/api.py +++ b/odoo/api.py @@ -15,20 +15,19 @@ __all__ = [ ] import logging -from collections import defaultdict, Mapping +from collections import defaultdict +from collections.abc import Mapping from contextlib import contextmanager -from copy import deepcopy from inspect import signature from pprint import pformat from weakref import WeakSet -from decorator import decorate, decorator +from decorator import decorate from werkzeug.local import Local, release_local -import odoo +from .exceptions import CacheMiss +from .tools import frozendict, classproperty, lazy_property, StackMap from .tools.translate import _ -from odoo.tools import frozendict, classproperty, lazy_property, StackMap -from odoo.exceptions import CacheMiss _logger = logging.getLogger(__name__) |
