[Piuparts-devel] Bug#586443: Bug#586443: Bug#586443: piuparts: python DeprecationWarning (sets / debian_bundle)

John Wright jsw at debian.org
Sun Jun 20 01:27:52 UTC 2010


tags 586443 + patch
thanks

On Sat, Jun 19, 2010 at 07:14:29PM +0200, Holger Levsen wrote:
> Hi Roland,
> 
> thanks for your bugreport!
> 
> On Samstag, 19. Juni 2010, Roland Stigge wrote:
> > # piuparts asp_1.8-7_i386.changes
> > /usr/sbin/piuparts:48: DeprecationWarning: the sets module is deprecated
> >   import sets
> > /usr/sbin/piuparts:53: DeprecationWarning: please use 'debian' instead of
> > 'debian_bundle' from debian_bundle import deb822
> > Guessed: debian
> 
> the problem is that piuparts.d.o runs piuparts on lenny, where no 
> debian_bundle exists. 
> 
> I assume the module should be loaded conditionally.

Sorry; we (the python-debian team) probably should have given some time
where loading debian_bundle didn't raise a DeprecationWarning.  Anyway,
the attached patch should squelch both warnings.

-- 
John Wright <jsw at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug586443.patch
Type: text/x-diff
Size: 715 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/piuparts-devel/attachments/20100619/15c80e56/attachment.patch>


More information about the Piuparts-devel mailing list