From 8c7bc01acbef00bf9289afe9e004fb0ea00b0e63 Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Fri, 25 Mar 2011 17:37:59 +0100 Subject: [PATCH 1/1] Consolidate warning configuration even more. Signed-off-by: Torsten Werner --- daklib/config.py | 5 +---- daklib/queue.py | 10 ---------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/daklib/config.py b/daklib/config.py index 18ce9b72..284cf1cc 100755 --- a/daklib/config.py +++ b/daklib/config.py @@ -43,10 +43,7 @@ warnings.filterwarnings('ignore', \ "Attribute '.*' of the 'apt_pkg.*' object is deprecated, use '.*' instead\.", \ DeprecationWarning) warnings.filterwarnings('ignore', \ - "apt_pkg\.newConfiguration\(\) is deprecated\. Use apt_pkg\.Configuration\(\) instead\.", \ - DeprecationWarning) -warnings.filterwarnings('ignore', \ - "apt_pkg\.ParseTagFile\(\) is deprecated\. Please see apt_pkg\.TagFile\(\) for the replacement\.", \ + "apt_pkg.*\(\) is deprecated\. Please see apt_pkg.*\(\) for the replacement\.", \ DeprecationWarning) ################################################################################ diff --git a/daklib/queue.py b/daklib/queue.py index 2b7f5204..ef781f19 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -56,16 +56,6 @@ from textutils import fix_maintainer from lintian import parse_lintian_output, generate_reject_messages from contents import UnpackedSource -# suppress some deprecation warnings in squeeze related to apt_pkg -# module -import warnings -warnings.filterwarnings('ignore', \ - "apt_pkg.ParseSection\(\) is deprecated. Please see apt_pkg\.TagSection\(\) for the replacement\.", \ - DeprecationWarning) -warnings.filterwarnings('ignore', \ - "Attribute '.*' of the 'apt_pkg\.TagSection' object is deprecated, use '.*' instead\.", \ - DeprecationWarning) - ############################################################################### def get_type(f, session): -- 2.39.2