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

Re: Quietening deprecation warnings?



On Sun, 2011-03-06 at 23:32 +0100, Julian Andres Klode wrote:
> On Sa, 2011-03-05 at 22:40 +0000, Adam D. Barratt wrote:
> > 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.
[...]
> It's not an exception, it's a warning; and it's using standard Python
> warnings. See Python's documentation of the 'warnings' module for
> information on how to deal with them.

Thanks, I did say I was probably missing something obvious... (other
than having the try-except logic back to front in a moment of
stupidity).

Regards,

Adam


Reply to: