From 00497c03db080914fed81dc3fc66fa5d45f65a4e Mon Sep 17 00:00:00 2001 From: Thomas Dieuzeide Date: Tue, 27 Oct 2020 10:14:47 +0000 Subject: [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) --- odoo/netsvc.py | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3