Bug#552190: python-debian: python DeprecationWarning

Julian Andres Klode jak at debian.org
Wed Feb 17 10:54:22 UTC 2010


On Thu, Jan 28, 2010 at 03:24:37PM -0700, John Wright wrote:
> Hi Sven,
> 
> On Mon, Jan 25, 2010 at 09:30:14AM +0100, Sven Joachim wrote:
> > On 2009-10-26 16:52 +0100, John Wright wrote:
> > 
> > > On Sat, Oct 24, 2009 at 07:39:21AM +0200, Laurent Bonnaud wrote:
> > >> # 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.
> 
> I have a branch that uses the new TagFile interface.  I'll try to merge
> that in and upload this week or weekend.  I also had a "fix" to ignore
> the DeprecationWarning in my local git tree, but I never got around to
> pushing or uploading.  Sorry about that.
> 
> Thanks for the reminder!

You might want to wait for 0.7.93.2 and use the iterator API therein,
which does not even use shared storage and should thus be more useful
for python-debian.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20100217/8fe9d9b0/attachment.pgp>


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