Bug#552190: python-debian: python DeprecationWarning

Sven Joachim svenjoac at gmx.de
Mon Jan 25 08:30:14 UTC 2010


On 2009-10-26 16:52 +0100, John Wright wrote:

> On Sat, Oct 24, 2009 at 07:39:21AM +0200, Laurent Bonnaud wrote:
>> Package: python-debian
>> Version: 0.1.14
>> Severity: normal
>> 
>> 
>> Hi,
>> 
>> here is the problem:
>> 
>> # update-apt-xapian-index --quiet
>> /usr/lib/pymodules/python2.5/debian_bundle/deb822.py:244:
>> DeprecationWarning: apt_pkg.ParseTagFile() is deprecated. Please see
>> apt_pkg.TagFile() for the replacement.
>>   parser = apt_pkg.ParseTagFile(sequence)
>> 
>> This is annoying because every week, /etc/cron.weekly/apt-xapian-index
>> outputs this warning and an e-mail is sent to the admin.
>> [...]
>
> Unfortunately, the apt_pkg.TagFile interface is not available in the
> version of python-apt in unstable.  I'll see if the interface is similar
> enough to the old ParseTagFile one to make deb822 use it if it's
> available but fall back on the old one if not.  If it would mean a bunch
> of extra code, I'd prefer to wait until this shows up in unstable.

Which has just happened with the upload of python-apt 0.7.93 to unstable
last week.  Today I received a mail from the weekly cron job with the
above warning.

Sven





More information about the pkg-python-debian-maint mailing list