diff options
| author | Thomas Dieuzeide <tdi@odoo.com> | 2020-10-27 10:14:47 +0000 |
|---|---|---|
| committer | Thomas Dieuzeide <tdi@odoo.com> | 2020-10-27 18:03:29 +0000 |
| commit | 00497c03db080914fed81dc3fc66fa5d45f65a4e (patch) | |
| tree | da7898e31d898ec5f99a8a13613b3a3909cd75b9 /odoo | |
| parent | fa576fc74e904ea428fd9cd24070ddbb64c553b4 (diff) | |
[FIX] core: avoid ofxparse DeprecationWarning
In current Debian version (0.19) ofxparse gives the following warning:
ofxparse/ofxparse.py:40: DeprecationWarning: Using or importing the ABCs from 'collections'
instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
return isinstance(candidate, collections.Iterable)
Since we can't do anything about it, we filter it for now.
ofxparse already fixed it https://github.com/jseutter/ofxparse/issues/155
A Debian bug report has been opened https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=973055
closes odoo/odoo#60805
Signed-off-by: Xavier Morel (xmo) <xmo@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 e3e2fa57204..3d6910d06dd 100644 --- a/odoo/netsvc.py +++ b/odoo/netsvc.py @@ -134,6 +134,7 @@ def init_logger(): 'zeep.loader',# zeep using defusedxml.lxml 'reportlab.lib.rl_safe_eval',# reportlab importing ABC from collections 'xlrd/xlsx',# xlrd mischecks iter() on trees or something so calls deprecated getiterator() instead of iter() + 'ofxparse',# ofxparse importing ABC from collections ]: warnings.filterwarnings('ignore', category=DeprecationWarning, module=module) |
