diff options
| author | Christophe Monniez <moc@odoo.com> | 2021-04-28 06:29:38 +0000 |
|---|---|---|
| committer | Christophe Monniez <moc@odoo.com> | 2021-04-29 14:18:06 +0000 |
| commit | 91dd6171dac567e5f0185e53982ede3b166cfe7c (patch) | |
| tree | 70b6bd9597a29b128c96e41da9adaa65b07eab73 /odoo | |
| parent | 1c39814bd729cc08882f1545c7d88b0592e63f9a (diff) | |
[FIX] core: avoid deprecation warning in requests_toolbelt
The requests_toolbelt package < 0.9 uses `from collections import ...`
which is deprecated in python 3.8 [0].
The request_toolbelt package is not a dependency of Odoo but is needed
by zeep [1]. Unfortunately, the Ubuntu python3-requests-toolbelt package
is still 0.8 [2].
This commit filters out the warning.
[0] https://github.com/requests/toolbelt/commit/979f95266c2044893b05cb2314e94c899915748c
[1] https://packages.ubuntu.com/focal/python3-zeep
[2] https://packages.ubuntu.com/focal/python3-requests-toolbelt
closes odoo/odoo#70137
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
Diffstat (limited to 'odoo')
| -rw-r--r-- | odoo/netsvc.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/odoo/netsvc.py b/odoo/netsvc.py index a59cf3482cd..0e5baefae78 100644 --- a/odoo/netsvc.py +++ b/odoo/netsvc.py @@ -137,6 +137,7 @@ def init_logger(): 'reportlab.lib.rl_safe_eval',# reportlab importing ABC from collections 'ofxparse',# ofxparse importing ABC from collections 'astroid', # deprecated imp module (fixed in 2.5.1) + 'requests_toolbelt', # importing ABC from collections (fixed in 0.9) ]: warnings.filterwarnings('ignore', category=DeprecationWarning, module=module) |
