From 115047e02f1509873b8be1fcd58e2e28ce761060 Mon Sep 17 00:00:00 2001 From: Christophe Monniez <moc@odoo.com> Date: Fri, 26 Aug 2022 09:49:34 +0000 Subject: [PATCH] [FIX] core: ignore some threading and distutils deprecation warnings The future removal of these deprecated methods or module are properly handled in upper versions. Part-of: odoo/odoo#98081 --- odoo/netsvc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/odoo/netsvc.py b/odoo/netsvc.py index 616bad184e95..deea2e288b28 100644 --- a/odoo/netsvc.py +++ b/odoo/netsvc.py @@ -130,6 +130,9 @@ def init_logger(): warnings.filterwarnings('ignore', r'^invalid escape sequence \'?\\.', category=DeprecationWarning) # recordsets are both sequence and set so trigger warning despite no issue warnings.filterwarnings('ignore', r'^Sampling from a set', category=DeprecationWarning, module='odoo') + # (Jammy) distutils, currentThread, isDaemon, setDaemon future removal are properly handled in upper versions + warnings.filterwarnings('ignore', r'^The distutils package is deprecated and slated for removal', category=DeprecationWarning) + warnings.filterwarnings('ignore', r'^(currentThread|isDaemon|setDaemon)\(\) is deprecated', category=DeprecationWarning) # ignore a bunch of warnings we can't really fix ourselves for module in [ 'babel.util', # deprecated parser module, no release yet -- GitLab