From 12aa4c9ae0c805b3c07eee1d7873e1d513010e98 Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Fri, 25 Mar 2011 17:25:34 +0100 Subject: [PATCH] Let's hope nobody reads THAT commit! It's too embarrassing. Signed-off-by: Torsten Werner --- dak/cruft_report.py | 10 ++++++++++ dak/queue_report.py | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dak/cruft_report.py b/dak/cruft_report.py index 08d336d4..aac0d454 100755 --- a/dak/cruft_report.py +++ b/dak/cruft_report.py @@ -35,6 +35,16 @@ Check for obsolete binary packages ################################################################################ +import warnings +warnings.filterwarnings('ignore', \ + "apt_pkg\.ParseTagFile\(\) is deprecated\. Please see apt_pkg\.TagFile\(\) for the replacement\.", \ + DeprecationWarning) +warnings.filterwarnings('ignore', \ + "Attribute '.*' of the 'apt_pkg\.TagFile' object is deprecated, use '.*' instead\.", \ + DeprecationWarning) + +################################################################################ + import commands, os, sys, re import apt_pkg diff --git a/dak/queue_report.py b/dak/queue_report.py index 7176a886..98c80f0a 100755 --- a/dak/queue_report.py +++ b/dak/queue_report.py @@ -34,16 +34,6 @@ ################################################################################ -import warnings -warnings.filterwarnings('ignore', \ - "apt_pkg\.ParseTagFile\(\) is deprecated\. Please see apt_pkg\.TagFile\(\) for the replacement\.", \ - DeprecationWarning) -warnings.filterwarnings('ignore', \ - "Attribute '.*' of the 'apt_pkg\.TagFile' object is deprecated, use '.*' instead\.", \ - DeprecationWarning) - -################################################################################ - from copy import copy import glob, os, stat, sys, time import apt_pkg -- 2.39.2