From: Torsten Werner Date: Fri, 25 Mar 2011 16:37:59 +0000 (+0100) Subject: Consolidate warning configuration even more. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=8c7bc01acbef00bf9289afe9e004fb0ea00b0e63;hp=67421d267223b8a92c8acf8c00aa30d48e565ffa;p=dak.git Consolidate warning configuration even more. Signed-off-by: Torsten Werner --- 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):