Re: Quietening deprecation warnings?
On Sat, 2011-03-05 at 22:40 +0000, Adam D. Barratt wrote:
> Whilst having a look at some of the changes that would be required to
> release team tools when the ftp-master host gets upgraded to Squeeze, I
> noticed that apt_pkg.ParseTagFile() has been deprecated and using it
> results in a warning being thrown to stderr.
[...]
> Is there any way (apologies if I've missed an obvious one) to quieten
> the deprecation warnings? The scripts are run from cron
> and /dev/nulling stderr isn't really possible.
Things might work better if I did "try: new stuff except: old stuff"
instead of the reverse *sigh*. The noise on stderr is still, well,
noisy when it appears, but less annoying now. :-)
Regards,
Adam
Reply to: