[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Quietening deprecation warnings?



Hi,

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.

I'd like to be able to prepare for the switch by patching the code to
cope with both the old and new python-apt APIs, but it appears that the
warnings are simply printed on stderr rather than raised as exceptions
which could then be handled.

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.

Regards,

Adam


Reply to: